Skip to content

Commit

Permalink
usbnet: rtl8150: remove unused variable
Browse files Browse the repository at this point in the history
remove unused variable

Signed-off-by: Sudip Mukherjee <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
sudipm-mukherjee authored and davem330 committed Nov 19, 2014
1 parent 1e3531d commit 1abe7cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/net/usb/rtl8150.c
Original file line number Diff line number Diff line change
Expand Up @@ -753,14 +753,13 @@ static int rtl8150_open(struct net_device *netdev)
static int rtl8150_close(struct net_device *netdev)
{
rtl8150_t *dev = netdev_priv(netdev);
int res = 0;

netif_stop_queue(netdev);
if (!test_bit(RTL8150_UNPLUG, &dev->flags))
disable_net_traffic(dev);
unlink_all_urbs(dev);

return res;
return 0;
}

static void rtl8150_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *info)
Expand Down

0 comments on commit 1abe7cd

Please sign in to comment.