All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3/3] staging/ft1000: remove usage of ret in ft1000_open
@ 2012-06-19 16:23 Devendra Naga
  0 siblings, 0 replies; only message in thread
From: Devendra Naga @ 2012-06-19 16:23 UTC (permalink / raw)
  To: Marek Belisko, Greg Kroah-Hartman, devel, linux-kernel; +Cc: Devendra Naga

remove the ret and do a simple  "return ft1000_submit_rx_urb"

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
---
 drivers/staging/ft1000/ft1000-usb/ft1000_hw.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
index 43b1d36..c1f4f13 100644
--- a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
+++ b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
@@ -1178,7 +1178,6 @@ static int ft1000_open(struct net_device *dev)
 {
 	struct ft1000_info *pInfo = netdev_priv(dev);
 	struct timeval tv;
-	int ret;
 
 	DEBUG("ft1000_open is called for card %d\n", pInfo->CardNumber);
 
@@ -1194,9 +1193,7 @@ static int ft1000_open(struct net_device *dev)
 
 	netif_carrier_on(dev);
 
-	ret = ft1000_submit_rx_urb(pInfo);
-
-	return ret;
+	return ft1000_submit_rx_urb(pInfo);
 }
 
 //---------------------------------------------------------------------------
-- 
1.7.9.5


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

only message in thread, other threads:[~2012-06-19 16:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-19 16:23 [PATCH 3/3] staging/ft1000: remove usage of ret in ft1000_open Devendra Naga

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.