]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
net: usbnet: Remove unused driver_name variable
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 5 Apr 2017 01:16:57 +0000 (18:16 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Apr 2017 19:25:23 +0000 (12:25 -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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/usbnet.c

index 9890656af7358b6b8c8edb2d208627230cbc63ef..1cc945cbeaa3c0458ef9a729a847fd088d2f1c71 100644 (file)
@@ -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);