Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1616484 > unrolled thread

[PATCH net-next] net: usbnet: Remove unused driver_name variable

Started byFlorian Fainelli <f.fainelli@gmail.com>
First post2017-04-05 03:20 +0200
Last post2017-04-06 21:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH net-next] net: usbnet: Remove unused driver_name variable Florian Fainelli <f.fainelli@gmail.com> - 2017-04-05 03:20 +0200
    Re: [PATCH net-next] net: usbnet: Remove unused driver_name  variable David Miller <davem@davemloft.net> - 2017-04-06 21:30 +0200

#1616484 — [PATCH net-next] net: usbnet: Remove unused driver_name variable

FromFlorian Fainelli <f.fainelli@gmail.com>
Date2017-04-05 03:20 +0200
Subject[PATCH net-next] net: usbnet: Remove unused driver_name variable
Message-ID<tsHM5-4f4-3@gated-at.bofh.it>
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

[toc] | [next] | [standalone]


#1618297 — Re: [PATCH net-next] net: usbnet: Remove unused driver_name variable

FromDavid Miller <davem@davemloft.net>
Date2017-04-06 21:30 +0200
SubjectRe: [PATCH net-next] net: usbnet: Remove unused driver_name variable
Message-ID<ttlgu-54H-13@gated-at.bofh.it>
In reply to#1616484
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.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web