All of lore.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; 2+ messages 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] 2+ messages in thread

* [PATCH] staging: vt6656: fix Unneeded variable: "ret"
@ 2020-01-25 17:09 ` Saurav Girepunje
  0 siblings, 0 replies; 2+ messages 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

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-25 17:09 UTC | newest]

Thread overview: 2+ messages (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
2020-01-25 17:09 ` Saurav Girepunje

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.