Messages in this thread Patch in this message | | | From | cgel.zte@gmail ... | Subject | [PATCH] drivers/staging: remove redundant result variable | Date | Mon, 10 Jan 2022 01:32:40 +0000 |
| |
From: Minghao Chi <chi.minghao@zte.com.cn>
Return value from ips_netdrv_open() directly instead of taking this in another redundant variable.
Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn> Signed-off-by: CGEL ZTE <cgel.zte@gmail.com> --- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/drivers/staging/rtl8723bs/os_dep/os_intfs.c b/drivers/staging/rtl8723bs/os_dep/os_intfs.c index 05482341eefe..757efeb49d08 100644 --- a/drivers/staging/rtl8723bs/os_dep/os_intfs.c +++ b/drivers/staging/rtl8723bs/os_dep/os_intfs.c @@ -922,11 +922,7 @@ static int ips_netdrv_open(struct adapter *padapter) int rtw_ips_pwr_up(struct adapter *padapter) { - int result; - - result = ips_netdrv_open(padapter); - - return result; + return ips_netdrv_open(padapter); } void rtw_ips_pwr_down(struct adapter *padapter) -- 2.25.1
| |