staging/ft1000: remove usage of ret in ft1000_open
authorDevendra Naga <devendra.aaru@gmail.com>
Tue, 19 Jun 2012 16:23:32 +0000 (21:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2012 23:07:07 +0000 (16:07 -0700)
remove the ret and do a simple  "return ft1000_submit_rx_urb"

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ft1000/ft1000-usb/ft1000_hw.c

index 43b1d363107e1f7afe4d6f6dc38dd560d372f44f..c1f4f13bf4859a548f3a868c4d2aefed61ffb11e 100644 (file)
@@ -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);
 }
 
 //---------------------------------------------------------------------------