staging: rtl8723bs: remove dead code in os_intfs.c
PATCH v2 1/1 staging: rtl8723bs: remove dead code in os_intfs.c
Remove commented-out dead code in netdev_close(). The code was previously commented out and is not needed.
Suggested-by Dan Carpenter <[email protected]>
Signed-off-by Adrish Bora <[email protected]>
---
Changes in v2:
- Removed the dead code entirely instead of fixing the comment style, as suggested by Dan Carpenter.
--- drivers/staging/rtl8723bs/os_dep/os_intfs.c | 8 -------- 1 file changed, 8 deletions(-)
drivers/staging/rtl8723bs/os_dep/os_intfs.c +0 -8
@@ -934,14 +934,6 @@ static int netdev_close(struct net_device *pnetdev) padapter->net_closed = true; padapter->netif_up = false; -/*if (!padapter->hw_init_completed) -{ - -padapter->bDriverStopped = true; - -rtw_dev_unload(padapter); -} -else*/ if (pwrctl->rf_pwrstate == rf_on) {/* s1. */ if (pnetdev) {
Signature · 1 line
2.43.0
Quoted 9 lines · Adrish Bora
Remove commented-out dead code in
netdev_close(). The code was previously commented out and is not needed.Suggested-by Dan Carpenter <[email protected]>Signed-off-by Adrish Bora <[email protected]>---
Changes in v2:
- Removed the dead code entirely instead of fixing the comment style, as suggested by Dan Carpenter.
Thanks!
Reviewed-by Dan Carpenter <[email protected]>
regards,
dan carpenter