Staging: rtl8188eu: rtw_ieee80211: Remove unnecessary cast
authorShivani Bhardwaj <shivanib134@gmail.com>
Wed, 14 Oct 2015 18:32:14 +0000 (00:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:51:48 +0000 (22:51 -0700)
Explicit type conversion is not required and should be removed.
Semantic patch used:
@@
type T;
T e;
identifier x;
@@

* T x = (T)e;

Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_ieee80211.c

index 39325a3a2fa2649ed1a7eb757a551fb650d9cc86..82d4e888ca63502ee6d417aff6c465b5e8b2e3ef 100644 (file)
@@ -1103,7 +1103,7 @@ void rtw_macaddr_cfg(u8 *mac_addr)
 
 void dump_ies(u8 *buf, u32 buf_len)
 {
-       u8 *pos = (u8 *)buf;
+       u8 *pos = buf;
        u8 id, len;
 
        while (pos-buf <= buf_len) {
@@ -1119,7 +1119,7 @@ void dump_ies(u8 *buf, u32 buf_len)
 
 void dump_wps_ie(u8 *ie, u32 ie_len)
 {
-       u8 *pos = (u8 *)ie;
+       u8 *pos = ie;
        u16 id;
        u16 len;
        u8 *wps_ie;