staging: rtl8192u: fixed no space coding style issue.
authorzhaoxiao <zhaoxiao@uniontech.com>
Mon, 15 Mar 2021 06:12:02 +0000 (14:12 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 16 Mar 2021 11:36:34 +0000 (12:36 +0100)
Added space around the binary operator for readability in
r8192U_wx.c file

Signed-off-by: zhaoxiao <zhaoxiao@uniontech.com>
Link: https://lore.kernel.org/r/20210315061202.10219-1-zhaoxiao@uniontech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_wx.c

index 5211b20..6ead461 100644 (file)
@@ -276,7 +276,7 @@ static int rtl8180_wx_get_range(struct net_device *dev,
        range->min_pmp = 0;
        range->max_pmp = 5000000;
        range->min_pmt = 0;
-       range->max_pmt = 65535*1000;
+       range->max_pmt = 65535 * 1000;
        range->pmp_flags = IW_POWER_PERIOD;
        range->pmt_flags = IW_POWER_TIMEOUT;
        range->pm_capa = IW_POWER_PERIOD | IW_POWER_TIMEOUT | IW_POWER_ALL_R;
@@ -519,14 +519,14 @@ static int r8192_wx_set_enc(struct net_device *dev,
        /* sometimes, the length is zero while we do not type key value */
        if (wrqu->encoding.length != 0) {
                for (i = 0; i < 4; i++) {
-                       hwkey[i] |=  key[4*i+0]&mask;
-                       if (i == 1 && (4*i+1) == wrqu->encoding.length)
+                       hwkey[i] |=  key[4 * i + 0] & mask;
+                       if (i == 1 && (4 * i + 1) == wrqu->encoding.length)
                                mask = 0x00;
-                       if (i == 3 && (4*i+1) == wrqu->encoding.length)
+                       if (i == 3 && (4 * i + 1) == wrqu->encoding.length)
                                mask = 0x00;
-                       hwkey[i] |= (key[4*i+1]&mask)<<8;
-                       hwkey[i] |= (key[4*i+2]&mask)<<16;
-                       hwkey[i] |= (key[4*i+3]&mask)<<24;
+                       hwkey[i] |= (key[4 * i + 1] & mask) << 8;
+                       hwkey[i] |= (key[4 * i + 2] & mask) << 16;
+                       hwkey[i] |= (key[4 * i + 3] & mask) << 24;
                }
 
                #define CONF_WEP40  0x4