Commit 9e4f62f4 authored by Sanjana Sanikommu's avatar Sanjana Sanikommu Committed by Greg Kroah-Hartman

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.
Signed-off-by: default avatarSanjana Sanikommu <sanjana99reddy99@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2fd37c9d
...@@ -1859,8 +1859,7 @@ static int process_recv_indicatepkts(struct adapter *padapter, ...@@ -1859,8 +1859,7 @@ static int process_recv_indicatepkts(struct adapter *padapter,
/* including perform A-MPDU Rx Ordering Buffer Control */ /* including perform A-MPDU Rx Ordering Buffer Control */
if ((!padapter->bDriverStopped) && if ((!padapter->bDriverStopped) &&
(!padapter->bSurpriseRemoved)) { (!padapter->bSurpriseRemoved)) {
retval = _FAIL; return _FAIL;
return retval;
} }
} }
} else { /* B/G mode */ } else { /* B/G mode */
...@@ -1879,8 +1878,7 @@ static int process_recv_indicatepkts(struct adapter *padapter, ...@@ -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_, ("@@@@ %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)); RT_TRACE(_module_rtl871x_recv_c_, _drv_notice_, ("recv_func:bDriverStopped(%d) OR bSurpriseRemoved(%d)", padapter->bDriverStopped, padapter->bSurpriseRemoved));
retval = _FAIL; return _FAIL;
return retval;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment