staging: rtl8723bs: add spaces around operators in core/rtw_ieee80211.c
authorFabio Aiuto <fabioaiuto83@gmail.com>
Sun, 4 Apr 2021 14:09:46 +0000 (16:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Apr 2021 10:16:17 +0000 (12:16 +0200)
fix post-commit hook checkpatch issues:

CHECK: spaces preferred around that '+' (ctx:VxV)
161: FILE: drivers/staging/rtl8723bs/core/rtw_ieee80211.c:648:
+ *wpa_len = in_ie[cnt+1]+2;
                      ^

CHECK: spaces preferred around that '+' (ctx:VxV)
161: FILE: drivers/staging/rtl8723bs/core/rtw_ieee80211.c:648:
+ *wpa_len = in_ie[cnt+1]+2;
                         ^

CHECK: spaces preferred around that '+' (ctx:VxV)
162: FILE: drivers/staging/rtl8723bs/core/rtw_ieee80211.c:649:
+ cnt += in_ie[cnt+1]+2;  /* get next */
                  ^

CHECK: spaces preferred around that '+' (ctx:VxV)
162: FILE: drivers/staging/rtl8723bs/core/rtw_ieee80211.c:649:
+ cnt += in_ie[cnt+1]+2;  /* get next */
                     ^

Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com>
Link: https://lore.kernel.org/r/1b5ee3d974c336e20f034d5de449fc29967a6213.1617545239.git.fabioaiuto83@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ieee80211.c

index eb2058f..a0d664e 100644 (file)
@@ -645,8 +645,8 @@ void rtw_get_sec_ie(u8 *in_ie, uint in_len, u8 *rsn_ie, u16 *rsn_len, u8 *wpa_ie
                        if (wpa_ie)
                                memcpy(wpa_ie, &in_ie[cnt], in_ie[cnt+1]+2);
 
-                       *wpa_len = in_ie[cnt+1]+2;
-                       cnt += in_ie[cnt+1]+2;  /* get next */
+                       *wpa_len = in_ie[cnt + 1] + 2;
+                       cnt += in_ie[cnt + 1] + 2;  /* get next */
                } else {
                        if (authmode == WLAN_EID_RSN) {
                                if (rsn_ie)