public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: vt6656: fix Unneeded variable: "ret"
@ 2020-01-25 17:09 Saurav Girepunje
  0 siblings, 0 replies; only message in thread
From: Saurav Girepunje @ 2020-01-25 17:09 UTC (permalink / raw)
  To: forest, gregkh, quentin.deslandes, colin.king, saurav.girepunje,
	tvboxspy, devel, linux-kernel
  Cc: saurav.girepunje

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

Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com>
---
  drivers/staging/vt6656/card.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/vt6656/card.c b/drivers/staging/vt6656/card.c
index 7958fc1..654cebc 100644
--- a/drivers/staging/vt6656/card.c
+++ b/drivers/staging/vt6656/card.c
@@ -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)
-- 
1.9.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-25 17:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-25 17:09 [PATCH] staging: vt6656: fix Unneeded variable: "ret" Saurav Girepunje

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox