From: Devendra Naga Date: Tue, 19 Jun 2012 16:23:32 +0000 (+0530) Subject: staging/ft1000: remove usage of ret in ft1000_open X-Git-Tag: v3.6-rc1~100^2~661 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06e34dfb8567585eed11ab39fc2a39192b66500d;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Signed-off-by: Greg Kroah-Hartman --- 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); } //---------------------------------------------------------------------------