Skip to contentSkip to conversation

staging: vt6656: fix Unneeded variable: "ret"

PATCH New Saurav Girepunje 1 participant 1 message Jan 25, 2020 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: vt6656: fix Unneeded variable: "ret"

Remove unneeded variable "ret". Issues reported by coccicheck.

---
 drivers/staging/vt6656/card.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/vt6656/card.c +1 -2
index 7958fc1..654cebc 100644
@@ -719,7 +719,6 @@ int vnt_radio_power_off(struct vnt_private *priv)
  */
 int vnt_radio_power_on(struct vnt_private *priv)
 {
-	int ret = 0;
 
 	vnt_exit_deep_sleep(priv);
 
@@ -739,7 +738,7 @@ int vnt_radio_power_on(struct vnt_private *priv)
 
 	vnt_mac_reg_bits_off(priv, MAC_REG_GPIOCTL1, GPIO3_INTMD);
 
-	return ret;
+	return 0;
 }
 
 void vnt_set_bss_mode(struct vnt_private *priv)
Signature · 1 line
1.9.1