]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: rtl8188eu: core: rtw_recv.c: fix a space issue
authorSanjana Sanikommu <sanjana99reddy99@gmail.com>
Sun, 17 Mar 2019 15:39:29 +0000 (21:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:50:11 +0000 (07:50 +0100)
Fix a space issue around the below operators mentioned in CHECK.
Issue found by checkpatch.pl semantic patch results for
rtw_recv.c..

CHECK: spaces preferred around '%' (ctx:VxV)
CHECK: spaces preferred around '&' (ctx:VxV)
CHECK: spaces preferred around '+' (ctx:VxV)
CHECK: spaces preferred around '<<' (ctx:VxV)

Signed-off-by: Sanjana Sanikommu <sanjana99reddy99@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_recv.c

index 1d83affc08cebb5c5c4012a3847643aba8342629..bf9c95395844d4830f30a7b015ec2a27b566be36 100644 (file)
@@ -365,9 +365,9 @@ static struct recv_frame *decryptor(struct adapter *padapter,
        RT_TRACE(_module_rtl871x_recv_c_, _drv_info_, ("prxstat->decrypted=%x prxattrib->encrypt=0x%03x\n", prxattrib->bdecrypted, prxattrib->encrypt));
 
        if (prxattrib->encrypt > 0) {
-               u8 *iv = precv_frame->pkt->data+prxattrib->hdrlen;
+               u8 *iv = precv_frame->pkt->data + prxattrib->hdrlen;
 
-               prxattrib->key_index = (((iv[3])>>6)&0x3);
+               prxattrib->key_index = (((iv[3]) >> 6) & 0x3);
 
                if (prxattrib->key_index > WEP_KEYS) {
                        DBG_88E("prxattrib->key_index(%d)>WEP_KEYS\n", prxattrib->key_index);
@@ -1160,7 +1160,7 @@ static int validate_recv_frame(struct adapter *adapter,
        u8 bDumpRxPkt;
        struct rx_pkt_attrib *pattrib = &precv_frame->attrib;
        u8 *ptr = precv_frame->pkt->data;
-       u8  ver = (unsigned char)(*ptr)&0x3;
+       u8  ver = (unsigned char)(*ptr) & 0x3;
        struct mlme_ext_priv *pmlmeext = &adapter->mlmeextpriv;
 
        if (pmlmeext->sitesurvey_res.state == SCAN_PROCESS) {
@@ -1763,7 +1763,8 @@ static int recv_indicatepkt_reorder(struct adapter *padapter,
                        preorder_ctrl->indicate_seq = pattrib->seq_num;
                        rtw_recv_indicatepkt(padapter, prframe);
 
-                       preorder_ctrl->indicate_seq = (preorder_ctrl->indicate_seq + 1)%4096;
+                       preorder_ctrl->indicate_seq =
+                               (preorder_ctrl->indicate_seq + 1) % 4096;
                        return _SUCCESS;
                }
        } else if (pattrib->amsdu == 1) { /* temp filter -> means didn't support A-MSDUs in a A-MPDU */
@@ -1771,7 +1772,8 @@ static int recv_indicatepkt_reorder(struct adapter *padapter,
                        preorder_ctrl->indicate_seq = pattrib->seq_num;
                        retval = amsdu_to_msdu(padapter, prframe);
 
-                       preorder_ctrl->indicate_seq = (preorder_ctrl->indicate_seq + 1)%4096;
+                       preorder_ctrl->indicate_seq =
+                               (preorder_ctrl->indicate_seq + 1) % 4096;
                        return retval;
                }
        }