linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] atl2: remove unused variable 'atl2_driver_string'
@ 2020-03-26  3:21 YueHaibing
  2020-03-26 18:22 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2020-03-26  3:21 UTC (permalink / raw)
  To: jcliburn, chris.snook, davem, yuehaibing, hkallweit1, mhabets,
	huangfq.daxian, leon, colin.king
  Cc: netdev, linux-kernel

drivers/net/ethernet/atheros/atlx/atl2.c:40:19: warning: ‘atl2_driver_string’ defined but not used [-Wunused-const-variable=]
 static const char atl2_driver_string[] = "Atheros(R) L2 Ethernet Driver";
                   ^~~~~~~~~~~~~~~~~~

commit ea973742140b ("net/atheros: Clean atheros code from driver version")
left behind this, remove it.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/net/ethernet/atheros/atlx/atl2.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/ethernet/atheros/atlx/atl2.c b/drivers/net/ethernet/atheros/atlx/atl2.c
index 7c52b92b599d..c915852b8892 100644
--- a/drivers/net/ethernet/atheros/atlx/atl2.c
+++ b/drivers/net/ethernet/atheros/atlx/atl2.c
@@ -37,7 +37,6 @@
 #include "atl2.h"
 
 static const char atl2_driver_name[] = "atl2";
-static const char atl2_driver_string[] = "Atheros(R) L2 Ethernet Driver";
 static const struct ethtool_ops atl2_ethtool_ops;
 
 MODULE_AUTHOR("Atheros Corporation <xiong.huang@atheros.com>, Chris Snook <csnook@redhat.com>");
-- 
2.17.1



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

* Re: [PATCH net-next] atl2: remove unused variable 'atl2_driver_string'
  2020-03-26  3:21 [PATCH net-next] atl2: remove unused variable 'atl2_driver_string' YueHaibing
@ 2020-03-26 18:22 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2020-03-26 18:22 UTC (permalink / raw)
  To: yuehaibing
  Cc: jcliburn, chris.snook, hkallweit1, mhabets, huangfq.daxian, leon,
	colin.king, netdev, linux-kernel

From: YueHaibing <yuehaibing@huawei.com>
Date: Thu, 26 Mar 2020 11:21:50 +0800

> drivers/net/ethernet/atheros/atlx/atl2.c:40:19: warning: ‘atl2_driver_string’ defined but not used [-Wunused-const-variable=]
>  static const char atl2_driver_string[] = "Atheros(R) L2 Ethernet Driver";
>                    ^~~~~~~~~~~~~~~~~~
> 
> commit ea973742140b ("net/atheros: Clean atheros code from driver version")
> left behind this, remove it.
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>

Applied.

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

end of thread, other threads:[~2020-03-26 18:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-26  3:21 [PATCH net-next] atl2: remove unused variable 'atl2_driver_string' YueHaibing
2020-03-26 18:22 ` 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).