netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] usbnet: rtl8150: remove unused variable
@ 2014-11-18 16:25 Sudip Mukherjee
  2014-11-19 20:17 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Sudip Mukherjee @ 2014-11-18 16:25 UTC (permalink / raw)
  To: Petko Manolov; +Cc: Sudip Mukherjee, linux-usb, netdev, linux-kernel

remove unused variable

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
---

change in v2: changed the commit message

 drivers/net/usb/rtl8150.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/net/usb/rtl8150.c b/drivers/net/usb/rtl8150.c
index 6e87e57..d37b7dc 100644
--- a/drivers/net/usb/rtl8150.c
+++ b/drivers/net/usb/rtl8150.c
@@ -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)
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] usbnet: rtl8150: remove unused variable
  2014-11-18 16:25 [PATCH v2] usbnet: rtl8150: remove unused variable Sudip Mukherjee
@ 2014-11-19 20:17 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-11-19 20:17 UTC (permalink / raw)
  To: sudipm.mukherjee; +Cc: petkan, linux-usb, netdev, linux-kernel

From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Date: Tue, 18 Nov 2014 21:55:21 +0530

> remove unused variable
> 
> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
> ---
> 
> change in v2: changed the commit message

Applied, thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-19 20:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-18 16:25 [PATCH v2] usbnet: rtl8150: remove unused variable Sudip Mukherjee
2014-11-19 20:17 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).