Staging: rtl8188eu: rtw_recv.c: fix various warnings and checks in rtw_recv.c.
v5 cover Staging: rtl8188eu: rtw_recv.c: fix various warnings and checks in rtw_recv.c.
This series fix the following checks.
fix a paranthesis issue around ->
fix a space issue
Changes in v5:
Fix the patch sequence number in [PATCH v4 1/3]
Fix the patch sequence number in [PATCH v4 2/3]
Changes in v4:
Fix the patch version number in [PATCH v3 1/3]
Fix the patch version number in [PATCH v3 2/3]
Fix the patch version number in [PATCH v3 3/3]
Changes in v3:
Change the log message from the [PATCH v2 1/3] Change the subject line from the [PATCH v2 2/3] Change the log message from the [PATCH v2 2/3] fix a overflow of 80 characters from the [PATCH v2 3/3] fix a space issue around '>>' from the [PATCH v2 3/3] fix a space issue around '-' from the [PATCH v2 3/3]
Changes in v2:
Remove "From" line from the [PATCH 1/3]
Remove "From" line from the [PATCH 2/3]
Remove "From" line from the [PATCH 3/3]
Change subject line in [PATCH 2/3]
Change subject line in [PATCH 3/3]
Change log message in [PATCH 2/3]
Change log message in [PATCH 3/3]
Sanjana Sanikommu (3):
Staging: rtl8188eu: core: rtw_recv.c: Fix a tab indent issue
Staging: rtl8188eu: core: rtw_recv.c: fix a paranthesis issue around
pframe -> list in rtw_recv.c
Staging: rtl8188eu: core: rtw_recv.c: fix a space issue
drivers/staging/rtl8188eu/core/rtw_recv.c | 24 ++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-)
Signature · 1 line
2.17.1
PATCH v5 1/3 Staging: rtl8188eu: core: rtw_recv.c: Fix a tab indent issue
Fix a tab indent issue which removed warnings after compilation using checkpatch.pl.
[WARNING]:No extra space at the beginning of a line.
---
Changes in v5:
Fix the patch sequence number in [PATCH v4 1/3]
Changes in v4:
Fix the patch version number in [PATCH v3 1/3]
Changes in v3:
Change the log message from the [PATCH v2 1/3]
Changes in v2:
Remove "From" line from the [PATCH 1/3]
drivers/staging/rtl8188eu/core/rtw_recv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8188eu/core/rtw_recv.c +2 -2
@@ -24,11 +24,11 @@ static u8 SNAP_ETH_TYPE_APPLETALK_AARP[2] = {0x80, 0xf3};/* Bridge-Tunnel header (for EtherTypes ETH_P_AARP and ETH_P_IPX) */ static u8 rtw_bridge_tunnel_header[] = { -0xaa ,0xaa ,0x03 ,0x00 ,0x00 ,0xf8 +0xaa ,0xaa ,0x03 ,0x00 ,0x00 ,0xf8 };static u8 rtw_rfc1042_header[] = { -0xaa ,0xaa ,0x03 ,0x00 ,0x00 ,0x00 +0xaa ,0xaa ,0x03 ,0x00 ,0x00 ,0x00 };static void rtw_signal_stat_timer_hdl (struct timer_list *t);
Signature · 1 line
2.17.1
PATCH v5 2/3 Staging: rtl8188eu: core: rtw_recv.c: fix a paranthesis issue around pframe -> list in rtw_recv.c
In reply to Sanjana SanikommuRemove unnecessary parathesis issue around '->' . Issue found by checkpatch.pl semantic patch results for rtw_recv.c
CHECK: Remove unnecessary paranthesis around pframe -> list
---
Changes in v5:
Fix the patch sequence number in [PATCH v4 2/3]
Changes in v4:
Fix the patch version number in [PATCH v3 2/3]
Changes in v3:
Change the subject line from the [PATCH v2 2/3] Change the log message from the [PATCH v2 2/3]
Changes in v2:
Remove "From" line from the [PATCH 2/3] Change subject line in [PATCH 2/3]
Change log message in [PATCH 2/3]
drivers/staging/rtl8188eu/core/rtw_recv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/rtl8188eu/core/rtw_recv.c +4 -4
@@ -1336,7 +1336,7 @@ static struct recv_frame *recvframe_defrag(struct adapter *adapter, plist = phead->next; pfhdr = list_entry(plist, struct recv_frame, list); prframe = pfhdr; -list_del_init (&(prframe->list)); +list_del_init (&prframe->list);if (curfragnum != pfhdr->attrib.frag_num) {/* the first fragment number must be 0 */
@@ -1663,9 +1663,9 @@ static int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl,break ; } -list_del_init (&(prframe->list)); +list_del_init (&prframe->list); -list_add_tail (&(prframe->list), plist); +list_add_tail (&prframe->list, plist);return true; }
@@ -1704,7 +1704,7 @@ static int recv_indicatepkts_in_order(struct adapter *padapter, struct recv_reor ("%s: indicate=%d seq=%d amsdu=%d\n" , __func__, preorder_ctrl->indicate_seq, pattrib->seq_num, pattrib->amsdu)); plist = plist->next; -list_del_init (&(prframe->list)); +list_del_init (&prframe->list);if (SN_EQUAL (preorder_ctrl->indicate_seq, pattrib->seq_num)) preorder_ctrl->indicate_seq = (preorder_ctrl->indicate_seq +1 ) &0xFFF ;
Signature · 1 line
2.17.1
PATCH v5 3/3 Staging: rtl8188eu: core: rtw_recv.c: fix a space issue
In reply to Sanjana SanikommuFix 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)
---
Changes in v5:
No changes from [PATCH v4 3/3]
Changes in v4:
Fix the patch version number in [PATCH v3 3/3]
Changes in v3:
fix a overflow of 80 characters from the [PATCH v2 3/3] fix a space issue around '>>' from the [PATCH v2 3/3] fix a space issue around '-' from the [PATCH v2 3/3]
Changes in v2:
Remove "From" line from the [PATCH 3/3]
Change subject line in [PATCH 3/3]
Change log message in [PATCH 3/3]
drivers/staging/rtl8188eu/core/rtw_recv.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
drivers/staging/rtl8188eu/core/rtw_recv.c +7 -5
@@ -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; } }
Signature · 1 line
2.17.1