diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-04-04 18:16:57 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-04-06 12:25:23 -0700 |
commit | b73b3cde0e8b77af0d3b3758cfa7774a50abd640 (patch) | |
tree | 225ae6416f117191a16cf2a568072055d5a9a3fb /drivers/net/usb/usbnet.c | |
parent | 89c0a361301f81d76be5ab77c3f5470b88792670 (diff) | |
download | linux-b73b3cde0e8b77af0d3b3758cfa7774a50abd640.tar.bz2 |
net: usbnet: Remove unused driver_name variable
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/usb/usbnet.c')
-rw-r--r-- | drivers/net/usb/usbnet.c | 2 |
1 files changed, 0 insertions, 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); |