staging: r8188eu: Correct missing or extra space in the statements
authorDeepak R Varma <drv@mailo.com>
Thu, 20 Oct 2022 21:32:12 +0000 (03:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Oct 2022 08:00:22 +0000 (10:00 +0200)
Properly spacing out code statements/instructions improves code
readability. Add missing or remove extra space as necessary according
to the Linux Kernel coding-style guidelines. Following errors reported
by checkpatch script for inconsistent code spacing:
ERROR: space prohibited before that close parenthesis ')'
ERROR: space prohibited before that ',' (ctx:WxW)
CHECK: spaces preferred around that '&' (ctx:VxV)

Signed-off-by: Deepak R Varma <drv@mailo.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/4559d1a406b9f32379ec01cfadacea13a11803ac.1666299151.git.drv@mailo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/include/rtl8188e_spec.h
drivers/staging/r8188eu/include/rtw_mlme.h
drivers/staging/r8188eu/include/rtw_mlme_ext.h

index e34ecdc..3fa3b3e 100644 (file)
@@ -900,12 +900,12 @@ Current IOREG MAP
 #define HQSEL_HIQ                      BIT(5)
 
 /*  For normal driver, 0x10C */
-#define _TXDMA_HIQ_MAP(x)              (((x)&0x3) << 14)
-#define _TXDMA_MGQ_MAP(x)              (((x)&0x3) << 12)
-#define _TXDMA_BKQ_MAP(x)              (((x)&0x3) << 10)
-#define _TXDMA_BEQ_MAP(x)              (((x)&0x3) << 8 )
-#define _TXDMA_VIQ_MAP(x)              (((x)&0x3) << 6 )
-#define _TXDMA_VOQ_MAP(x)              (((x)&0x3) << 4 )
+#define _TXDMA_HIQ_MAP(x)              (((x) & 0x3) << 14)
+#define _TXDMA_MGQ_MAP(x)              (((x) & 0x3) << 12)
+#define _TXDMA_BKQ_MAP(x)              (((x) & 0x3) << 10)
+#define _TXDMA_BEQ_MAP(x)              (((x) & 0x3) << 8)
+#define _TXDMA_VIQ_MAP(x)              (((x) & 0x3) << 6)
+#define _TXDMA_VOQ_MAP(x)              (((x) & 0x3) << 4)
 
 #define QUEUE_LOW                      1
 #define QUEUE_NORMAL                   2
index ebf7168..ca539c6 100644 (file)
@@ -101,17 +101,17 @@ struct rt_link_detect {
 
 struct profile_info {
        u8      ssidlen;
-       u8      ssid[ WLAN_SSID_MAXLEN ];
-       u8      peermac[ ETH_ALEN ];
+       u8      ssid[WLAN_SSID_MAXLEN];
+       u8      peermac[ETH_ALEN];
 };
 
 struct tx_invite_req_info {
        u8      token;
        u8      benable;
-       u8      go_ssid[ WLAN_SSID_MAXLEN ];
+       u8      go_ssid[WLAN_SSID_MAXLEN];
        u8      ssidlen;
-       u8      go_bssid[ ETH_ALEN ];
-       u8      peer_macaddr[ ETH_ALEN ];
+       u8      go_bssid[ETH_ALEN];
+       u8      peer_macaddr[ETH_ALEN];
        u8      operating_ch;   /* This information will be set by using the
                                 * p2p_set op_ch=x */
        u8      peer_ch;        /* The listen channel for peer P2P device */
@@ -154,9 +154,9 @@ struct tx_nego_req_info {
 };
 
 struct group_id_info {
-       u8      go_device_addr[ ETH_ALEN ];     /* The GO's device address of
+       u8      go_device_addr[ETH_ALEN];       /* The GO's device address of
                                                 * this P2P group */
-       u8      ssid[ WLAN_SSID_MAXLEN ];       /* The SSID of this P2P group */
+       u8      ssid[WLAN_SSID_MAXLEN]; /* The SSID of this P2P group */
 };
 
 struct scan_limit_info {
@@ -459,7 +459,7 @@ static inline void set_fwstate(struct mlme_priv *pmlmepriv, int state)
 {
        pmlmepriv->fw_state |= state;
        /* FOR HW integration */
-       if (_FW_UNDER_SURVEY==state)
+       if (_FW_UNDER_SURVEY == state)
                pmlmepriv->bScanInProcess = true;
 }
 
@@ -467,7 +467,7 @@ static inline void _clr_fwstate_(struct mlme_priv *pmlmepriv, int state)
 {
        pmlmepriv->fw_state &= ~state;
        /* FOR HW integration */
-       if (_FW_UNDER_SURVEY==state)
+       if (_FW_UNDER_SURVEY == state)
                pmlmepriv->bScanInProcess = false;
 }
 
index 413b94e..66aa8b4 100644 (file)
@@ -729,7 +729,7 @@ enum rtw_c2h_event {
        GEN_EVT_CODE(_Survey),   /*8*/
        GEN_EVT_CODE(_SurveyDone),       /*9*/
 
-       GEN_EVT_CODE(_JoinBss) , /*10*/
+       GEN_EVT_CODE(_JoinBss), /*10*/
        GEN_EVT_CODE(_AddSTA),
        GEN_EVT_CODE(_DelSTA),
        GEN_EVT_CODE(_AtimDone),