staging: rtl8188eu: include: fixed multiple blank space coding style issues
authorB K Karthik <bkkarthik@pesu.pes.edu>
Sat, 18 Jul 2020 09:14:42 +0000 (05:14 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 Jul 2020 09:25:08 +0000 (11:25 +0200)
fixed multiple blank space coding style issues
reported by checkpatch

Signed-off-by: B K Karthik <karthik.bk2000@live.com>
Link: https://lore.kernel.org/r/20200718091442.xamnoawpguo42k7v@pesu-pes-edu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/hal_com.h
drivers/staging/rtl8188eu/include/osdep_service.h
drivers/staging/rtl8188eu/include/rtl8188e_hal.h
drivers/staging/rtl8188eu/include/rtl8188e_xmit.h
drivers/staging/rtl8188eu/include/rtw_cmd.h

index 542e6e9..c201977 100644 (file)
@@ -81,7 +81,7 @@
 #define        RATE_ALL_OFDM_AG        (RATR_6M | RATR_9M | RATR_12M | RATR_18M | \
                                 RATR_24M | RATR_36M | RATR_48M | RATR_54M)
 #define        RATE_ALL_OFDM_1SS       (RATR_MCS0 | RATR_MCS1 | RATR_MCS2 |    \
-                                RATR_MCS3 | RATR_MCS4 | RATR_MCS5|RATR_MCS6 | \
+                                RATR_MCS3 | RATR_MCS4 | RATR_MCS5 | RATR_MCS6 | \
                                 RATR_MCS7)
 #define        RATE_ALL_OFDM_2SS       (RATR_MCS8 | RATR_MCS9 | RATR_MCS10 | \
                                 RATR_MCS11 | RATR_MCS12 | RATR_MCS13 | \
index 0d3e4a6..31d897f 100644 (file)
@@ -82,7 +82,7 @@ void rtw_free_netdev(struct net_device *netdev);
 
 /* Macros for handling unaligned memory accesses */
 
-#define RTW_GET_BE24(a) ((((u32)(a)[0]) << 16) | (((u32) (a)[1]) << 8) | \
+#define RTW_GET_BE24(a) ((((u32)(a)[0]) << 16) | (((u32)(a)[1]) << 8) | \
                         ((u32)(a)[2]))
 
 void rtw_buf_free(u8 **buf, u32 *buf_len);
index ba7c987..b1e7350 100644 (file)
@@ -104,7 +104,7 @@ enum usb_rx_agg_mode {
        (WMM_NORMAL_TX_TOTAL_PAGE_NUMBER + 1) /* 0xA9 */
 
 /* Chip specific */
-#define CHIP_BONDING_IDENTIFIER(_value)        (((_value)>>22)&0x3)
+#define CHIP_BONDING_IDENTIFIER(_value)        (((_value) >> 22) & 0x3)
 #define CHIP_BONDING_92C_1T2R  0x1
 #define CHIP_BONDING_88C_USB_MCARD     0x2
 #define CHIP_BONDING_88C_USB_HP        0x1
index 49884cc..85efa41 100644 (file)
 #define SET_EARLYMODE_LEN2_1(__pAddr, __Value)                 \
        SET_BITS_TO_LE_4BYTE(__pAddr, 28, 4, __Value)
 #define SET_EARLYMODE_LEN2_2(__pAddr, __Value)                 \
-       SET_BITS_TO_LE_4BYTE(__pAddr+4, 0, 8, __Value)
+       SET_BITS_TO_LE_4BYTE(__pAddr + 4, 0, 8, __Value)
 #define SET_EARLYMODE_LEN3(__pAddr, __Value)                   \
-       SET_BITS_TO_LE_4BYTE(__pAddr+4, 8, 12, __Value)
+       SET_BITS_TO_LE_4BYTE(__pAddr + 4, 8, 12, __Value)
 #define SET_EARLYMODE_LEN4(__pAddr, __Value)                   \
-       SET_BITS_TO_LE_4BYTE(__pAddr+4, 20, 12, __Value)
+       SET_BITS_TO_LE_4BYTE(__pAddr + 4, 20, 12, __Value)
 
 /*  */
 /* defined for TX DESC Operation */
@@ -100,7 +100,7 @@ enum TXDESC_SC {
 
 #define txdesc_set_ccx_sw_88e(txdesc, value) \
        do { \
-               ((struct txdesc_88e *)(txdesc))->sw1 = (((value)>>8) & 0x0f); \
+               ((struct txdesc_88e *)(txdesc))->sw1 = (((value) >> 8) & 0x0f); \
                ((struct txdesc_88e *)(txdesc))->sw0 = ((value) & 0xff); \
        } while (0)
 
@@ -138,9 +138,9 @@ struct txrpt_ccx_88e {
        u8 sw0;
 };
 
-#define txrpt_ccx_sw_88e(txrpt_ccx) ((txrpt_ccx)->sw0 + ((txrpt_ccx)->sw1<<8))
+#define txrpt_ccx_sw_88e(txrpt_ccx) ((txrpt_ccx)->sw0 + ((txrpt_ccx)->sw1 << 8))
 #define txrpt_ccx_qtime_88e(txrpt_ccx)                 \
-       ((txrpt_ccx)->ccx_qtime0+((txrpt_ccx)->ccx_qtime1<<8))
+       ((txrpt_ccx)->ccx_qtime0 + ((txrpt_ccx)->ccx_qtime1 << 8))
 
 void rtl8188e_fill_fake_txdesc(struct adapter *padapter, u8 *pDesc,
                               u32 BufferLen, u8 IsPsPoll, u8 IsBTQosNull);
index fa5e212..002a797 100644 (file)
@@ -115,7 +115,7 @@ struct      setopmode_parm {
  */
 
 #define RTW_SSID_SCAN_AMOUNT 9 /*  for WEXT_CSCAN_AMOUNT 9 */
-#define RTW_CHANNEL_SCAN_AMOUNT (14+37)
+#define RTW_CHANNEL_SCAN_AMOUNT (14 + 37)
 struct sitesurvey_parm {
        int scan_mode;  /* active: 1, passive: 0 */
        u8 ssid_num;