staging: rtl8723bs: core: rtw_ieee80211.c: Remove unnecessary parentheses
authorPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Sat, 30 Mar 2019 05:12:46 +0000 (10:42 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Mar 2019 08:30:36 +0000 (09:30 +0100)
Challenge suggested by coccinelle.
Remove unnecessary parentheses around expressions.

Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ieee80211.c

index ac203c01c0985d6ec68279b1d1b9e33813e6be4e..aaf27438cd815c45a50f11525db3634bf0c4579e 100644 (file)
@@ -114,7 +114,7 @@ u8 *rtw_set_fixed_ie(unsigned char *pbuf, unsigned int len, unsigned char *sourc
 {
        memcpy((void *)pbuf, (void *)source, len);
        *frlen = *frlen + len;
-       return (pbuf + len);
+       return pbuf + len;
 }
 
 /*  rtw_set_ie will update frame length */
@@ -136,7 +136,7 @@ u8 *rtw_set_ie
 
        *frlen = *frlen + (len + 2);
 
-       return (pbuf + len + 2);
+       return pbuf + len + 2;
 }
 
 /*----------------------------------------------------------------------------
@@ -706,7 +706,7 @@ int rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie,
                }
        }
 
-       return (*rsn_len + *wpa_len);
+       return *rsn_len + *wpa_len;
 }
 
 u8 rtw_is_wps_ie(u8 *ie_ptr, uint *wps_ielen)