Skip to contentSkip to conversation

staging: rtl8723bs: remove dead code in os_intfs.c

PATCH In review Adrish Bora 2 participants 2 messages Dec 15, 2025 Staging

lore
Share & tools
lore
#0 lore raw

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.

---
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
index 6ca6dc548805..df839ea1bf1d 100644
@@ -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