drivers/staging: remove redundant result variable
PATCH 1/1 drivers/staging: remove redundant result variable
From: Minghao Chi <[email protected]>
Return value from ips_netdrv_open() directly instead of taking this in another redundant variable.
Reported-by Zeal Robot <[email protected]>
Signed-off-by Minghao Chi <[email protected]>
Signed-off-by CGEL ZTE <[email protected]>
--- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
drivers/staging/rtl8723bs/os_dep/os_intfs.c +1 -5
@@ -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)
Signature · 1 line
2.25.1