Skip to contentSkip to conversation

staging: rtl8192e: remove redundant initialization of variable init_status

PATCH New Colin King 1 participant 1 message Feb 22, 2020

Subsystems (2)
lore
Share & tools
lore

Colin King

author
#0 lore raw

PATCH 1/1 staging: rtl8192e: remove redundant initialization of variable init_status

From: Colin Ian King <[email protected]>

The pointer init_status is being initialized with a value that is never read, it is being updated later on. The initialization is redundant and can be removed.

Addresses-Coverity: ("Unused value")

---
 drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8192e/rtl8192e/rtl_core.c +1 -1
index ce57bf35c3ed..d3664e508cbe 100644
@@ -732,7 +732,7 @@ static int _rtl92e_sta_up(struct net_device *dev, bool is_silent_reset)
 	struct r8192_priv *priv = rtllib_priv(dev);
 	struct rt_pwr_save_ctrl *pPSC = (struct rt_pwr_save_ctrl *)
 					(&priv->rtllib->PowerSaveControl);
-	bool init_status = true;
+	bool init_status;
 
 	priv->bDriverIsGoingToUnload = false;
 	priv->bdisable_nic = false;
Signature · 1 line
2.25.0