Skip to contentSkip to conversation

staging: rtl8723bs: remove unnecessary goto jumps

PATCH New Bryan Brattlof 1 participant 1 message Apr 11, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 staging: rtl8723bs: remove unnecessary goto jumps

The next instruction for both 'goto exit' jump statements is to execute the exit jump instructions regardless. We can safely remove all jump statements from __init rtw_drv_entry()

---
Changes from:
v1: removed unnecessary edit of DBG_871X_LEVEL
v2: elaborated on steps to remove a checkpatch.pl warning
v3: separated checkpatch.pl fix into separate patch

 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/staging/rtl8723bs/os_dep/sdio_intf.c +0 -4
index 9fd926e1698f..2b61a4bdd8a1 100644
@@ -517,12 +517,8 @@ static int __init rtw_drv_entry(void)
 	if (ret != 0) {
 		sdio_drvpriv.drv_registered = false;
 		rtw_ndev_notifier_unregister();
-		goto exit;
 	}
 
-	goto exit;
-
-exit:
 	DBG_871X_LEVEL(_drv_always_, "module init ret =%d\n", ret);
 	return ret;
 }
Signature · 1 line
2.27.0