linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: usbnet: Remove unused driver_name variable
@ 2017-04-05  1:16 Florian Fainelli
  2017-04-06 19:26 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Fainelli @ 2017-04-05  1:16 UTC (permalink / raw)
  To: netdev
  Cc: davem, Florian Fainelli, Oliver Neukum,
	open list:USB NETWORKING DRIVERS, open list

With GCC 6.3, we can get the following warning:

drivers/net/usb/usbnet.c:85:19: warning: 'driver_name' defined but not
used [-Wunused-const-variable=]
 static const char driver_name [] = "usbnet";
                   ^~~~~~~~~~~

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 drivers/net/usb/usbnet.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
index 9890656af735..1cc945cbeaa3 100644
--- a/drivers/net/usb/usbnet.c
+++ b/drivers/net/usb/usbnet.c
@@ -82,8 +82,6 @@
 // randomly generated ethernet address
 static u8	node_id [ETH_ALEN];
 
-static const char driver_name [] = "usbnet";
-
 /* use ethtool to change the level for any given device */
 static int msg_level = -1;
 module_param (msg_level, int, 0);
-- 
2.9.3

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

* Re: [PATCH net-next] net: usbnet: Remove unused driver_name variable
  2017-04-05  1:16 [PATCH net-next] net: usbnet: Remove unused driver_name variable Florian Fainelli
@ 2017-04-06 19:26 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-04-06 19:26 UTC (permalink / raw)
  To: f.fainelli; +Cc: netdev, oneukum, linux-usb, linux-kernel

From: Florian Fainelli <f.fainelli@gmail.com>
Date: Tue,  4 Apr 2017 18:16:57 -0700

> With GCC 6.3, we can get the following warning:
> 
> drivers/net/usb/usbnet.c:85:19: warning: 'driver_name' defined but not
> used [-Wunused-const-variable=]
>  static const char driver_name [] = "usbnet";
>                    ^~~~~~~~~~~
> 
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Applied, thanks.

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

end of thread, other threads:[~2017-04-06 19:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-05  1:16 [PATCH net-next] net: usbnet: Remove unused driver_name variable Florian Fainelli
2017-04-06 19:26 ` 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).