summaryrefslogtreecommitdiff
path: root/drivers/staging/ft1000
diff options
context:
space:
mode:
authorDevendra Naga <devendra.aaru@gmail.com>2012-06-19 21:53:32 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-20 16:07:07 -0700
commit06e34dfb8567585eed11ab39fc2a39192b66500d (patch)
treedffd652efcd1e628ee5213d5cc60179bcee2e653 /drivers/staging/ft1000
parent42ad4a8da587792df050748cadfb433cd67a1cad (diff)
staging/ft1000: remove usage of ret in ft1000_open
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>
Diffstat (limited to 'drivers/staging/ft1000')
-rw-r--r--drivers/staging/ft1000/ft1000-usb/ft1000_hw.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c b/drivers/staging/ft1000/ft1000-usb/ft1000_hw.c
index 43b1d363107e..c1f4f13bf485 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);
}
//---------------------------------------------------------------------------