staging: rtl8188eu: core: rtw_recv.c: Modify return type suggested by Coccinelle.
PATCH 1/1 staging: rtl8188eu: core: rtw_recv.c: Modify return type suggested by Coccinelle.
The last two lines in the function could
be compressed into one. Avoid usage of local variable.
---
Changes in v2:
Test build the patch
drivers/staging/rtl8188eu/core/rtw_recv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/staging/rtl8188eu/core/rtw_recv.c +2 -4
@@ -1859,8 +1859,7 @@ static int process_recv_indicatepkts(struct adapter *padapter,/* including perform A-MPDU Rx Ordering Buffer Control */ if ((!padapter->bDriverStopped) && (!padapter->bSurpriseRemoved)) { - retval = _FAIL; -return retval; +return _FAIL; } } }else {/* B/G mode */
@@ -1879,8 +1878,7 @@ static int process_recv_indicatepkts(struct adapter *padapter,RT_TRACE (_module_rtl871x_recv_c_, _drv_notice_, ("@@@@ %s- recv_func free_indicatepkt\n" , __func__));RT_TRACE (_module_rtl871x_recv_c_, _drv_notice_, ("recv_func:bDriverStopped(%d) OR bSurpriseRemoved(%d)" , padapter->bDriverStopped, padapter->bSurpriseRemoved)); - retval = _FAIL; -return retval; +return _FAIL; } }
Signature · 1 line
2.17.1
Quoted 2 lines · Sanjana Sanikommu
The last two lines in the function could
be compressed into one. Avoid usage of local variable.
The commit message is misleading because at least in the first case, what is changed is not the last two lines of a function.
julia
Quoted 42 lines
Signed-off-by Sanjana Sanikommu <[email protected]>---
Changes in v2:
Test build the patchdrivers/staging/rtl8188eu/core/rtw_recv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)drivers/staging/rtl8188eu/core/rtw_recv.c +2
-5@@ -1859,8 +1859,7 @@ static int process_recv_indicatepkts(struct adapter *padapter,/* including perform A-MPDU Rx Ordering Buffer Control */ if ((!padapter->bDriverStopped) && (!padapter->bSurpriseRemoved)) { - retval = _FAIL; -return retval; +return _FAIL; } } }else {/* B/G mode */ @@ -1879,8 +1878,7 @@ static int process_recv_indicatepkts(struct adapter *padapter,RT_TRACE (_module_rtl871x_recv_c_, _drv_notice_, ("@@@@ %s- recv_func free_indicatepkt\n" , __func__));RT_TRACE (_module_rtl871x_recv_c_, _drv_notice_, ("recv_func:bDriverStopped(%d) OR bSurpriseRemoved(%d)" , padapter->bDriverStopped, padapter->bSurpriseRemoved)); - retval = _FAIL; -return retval; +return _FAIL; } } --2.17.1
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20190324065855.7685-1-sanjana99reddy99%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Quoted 11 lines · Julia Lawall
Quoted 2 lines · Sanjana Sanikommu
The last two lines in the function could
be compressed into one. Avoid usage of local variable.The commit message is misleading because at least in the first case, what is changed is not the last two lines of a function.
Sure, I would change commit message.
Sanjana
Quoted 58 lines
julia
Review
Quoted 9 lines
Signed-off-by Sanjana Sanikommu <[email protected] <javascript:>>---
Changes in v2:
Test build the patchdrivers/staging/rtl8188eu/core/rtw_recv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)(quoted diff) +0
-0
b/drivers/staging/rtl8188eu/core/rtw_recv.cdrivers/staging/rtl8188eu/core/rtw_recv.c static int process_recv_indicatepkts(struct
Quoted 4 lines
index
90eb1a025051..606a9f51508a100644drivers/staging/rtl8188eu/core/rtw_recv.c +0
-0@@ -1859,8 +1859,7 @@ static int process_recv_indicatepkts(structadapter *padapter,
drivers/staging/rtl8188eu/core/rtw_recv.c static int process_recv_indicatepkts(struct · line 1859
Quoted 1 line
drivers/staging/rtl8188eu/core/rtw_recv.c +0
-0/* including perform A-MPDU Rx Ordering Buffer Control */
drivers/staging/rtl8188eu/core/rtw_recv.c static int process_recv_indicatepkts(struct
Quoted 9 lines
drivers/staging/rtl8188eu/core/rtw_recv.c +1
-2if ((!padapter->bDriverStopped) && (!padapter->bSurpriseRemoved)) { - retval = _FAIL; -return retval; +return _FAIL; } } }else {/* B/G mode */ @@ -1879,8 +1878,7 @@ static int process_recv_indicatepkts(structadapter *padapter,
drivers/staging/rtl8188eu/core/rtw_recv.c static int process_recv_indicatepkts(struct · line 1878
Quoted 1 line
drivers/staging/rtl8188eu/core/rtw_recv.c +0
-0RT_TRACE(_module_rtl871x_recv_c_, _drv_notice_,("@@@@ %s-
recv_funcfree_indicatepkt\n",__func__));drivers/staging/rtl8188eu/core/rtw_recv.c static int process_recv_indicatepkts(struct · line 1879
Quoted 2 lines
drivers/staging/rtl8188eu/core/rtw_recv.c +0
-0RT_TRACE(_module_rtl871x_recv_c_, _drv_notice_,("recv_func:bDriverStopped(%d) OR bSurpriseRemoved(%d)",
padapter->bDriverStopped,padapter->bSurpriseRemoved));Quoted 11 lines
drivers/staging/rtl8188eu/core/rtw_recv.c +1
-3- retval = _FAIL; -return retval; +return _FAIL; } } --2.17.1
Signature · 1 line
You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected] <javascript:>.
Quoted 1 line
To post to this group, send email to [email protected]
<javascript:>.
Quoted 1 line
To view this discussion on the web visit
Quoted 2 lines
For more options, visit https://groups.google.com/d/optout.
Quoted 9 lines · On Sunday, March 24, 2019 at 12:43:33 PM UTC+5:30, [email protected] wrote:
Quoted 5 lines · Julia Lawall
On Sun, 24 Mar 2019, Sanjana Sanikommu wrote:
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
The last two lines in the function could
be compressed into one. Avoid usage of local variable.The commit message is misleading because at least in the first case, what is changed is not the last two lines of a function.
Sure, I would change commit message.
This patch is already in the tree. Please ignore this patch.
Thank you
Quoted 60 lines
Sanjana
Quoted 57 lines
julia
Review
Quoted 9 lines
Signed-off-by Sanjana Sanikommu <[email protected]>---
Changes in v2:
Test build the patchdrivers/staging/rtl8188eu/core/rtw_recv.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)(quoted diff) +0
-0
b/drivers/staging/rtl8188eu/core/rtw_recv.cdrivers/staging/rtl8188eu/core/rtw_recv.c static int process_recv_indicatepkts(struct
Quoted 4 lines
index
90eb1a025051..606a9f51508a100644drivers/staging/rtl8188eu/core/rtw_recv.c +0
-0@@ -1859,8 +1859,7 @@ static int process_recv_indicatepkts(structadapter *padapter,
drivers/staging/rtl8188eu/core/rtw_recv.c static int process_recv_indicatepkts(struct · line 1859
Quoted 1 line
drivers/staging/rtl8188eu/core/rtw_recv.c +0
-0/* including perform A-MPDU Rx Ordering Buffer Control */
drivers/staging/rtl8188eu/core/rtw_recv.c static int process_recv_indicatepkts(struct
Quoted 9 lines
drivers/staging/rtl8188eu/core/rtw_recv.c +1
-2if ((!padapter->bDriverStopped) && (!padapter->bSurpriseRemoved)) { - retval = _FAIL; -return retval; +return _FAIL; } } }else {/* B/G mode */ @@ -1879,8 +1878,7 @@ static int process_recv_indicatepkts(structadapter *padapter,
drivers/staging/rtl8188eu/core/rtw_recv.c static int process_recv_indicatepkts(struct · line 1878
Quoted 1 line
drivers/staging/rtl8188eu/core/rtw_recv.c +0
-0RT_TRACE(_module_rtl871x_recv_c_,_drv_notice_, ("@@@@ %s-
recv_funcfree_indicatepkt\n",__func__));drivers/staging/rtl8188eu/core/rtw_recv.c static int process_recv_indicatepkts(struct · line 1879
Quoted 2 lines
drivers/staging/rtl8188eu/core/rtw_recv.c +0
-0RT_TRACE(_module_rtl871x_recv_c_,_drv_notice_, ("recv_func:bDriverStopped(%d) OR bSurpriseRemoved(%d)",
padapter->bDriverStopped,padapter->bSurpriseRemoved));Quoted 11 lines
drivers/staging/rtl8188eu/core/rtw_recv.c +1
-3- retval = _FAIL; -return retval; +return _FAIL; } } --2.17.1
Signature · 1 line
You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
Quoted 2 lines
To post to this group, send email to [email protected]. To view this discussion on the web visit
Quoted 2 lines
For more options, visit https://groups.google.com/d/optout.