Skip to contentSkip to conversation

staging: rtl8723bs: remove redundant initialization

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

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

PATCH 1/1 staging: rtl8723bs: remove redundant initialization

The variable ret is being initialized as 0 and is never used until it's updated by sdio_register_driver()

This removes the redundant initialization of ret

---
 drivers/staging/rtl8723bs/os_dep/sdio_intf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/os_dep/sdio_intf.c +1 -1
index 5de4c70aab6a..9fd926e1698f 100644
@@ -503,7 +503,7 @@ static int rtw_sdio_resume(struct device *dev)
 
 static int __init rtw_drv_entry(void)
 {
-	int ret = 0;
+	int ret;
 
 	DBG_871X_LEVEL(_drv_always_, "module init start\n");
 	dump_drv_version(RTW_DBGDUMP);
Signature · 1 line
2.27.0