* [PATCH net-next] net: lan78xx: remove set but not used variable 'event'
@ 2019-10-23 7:36 YueHaibing
2019-10-24 4:38 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2019-10-23 7:36 UTC (permalink / raw)
To: woojung.huh, UNGLinuxDriver, davem
Cc: netdev, linux-usb, linux-kernel, YueHaibing
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/net/usb/lan78xx.c:3995:6: warning:
variable event set but not used [-Wunused-but-set-variable]
It is never used, so can be removed.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
drivers/net/usb/lan78xx.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c
index 6294809..f8c0818 100644
--- a/drivers/net/usb/lan78xx.c
+++ b/drivers/net/usb/lan78xx.c
@@ -3992,9 +3992,6 @@ static int lan78xx_suspend(struct usb_interface *intf, pm_message_t message)
struct lan78xx_priv *pdata = (struct lan78xx_priv *)(dev->data[0]);
u32 buf;
int ret;
- int event;
-
- event = message.event;
if (!dev->suspend_count++) {
spin_lock_irq(&dev->txq.lock);
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: lan78xx: remove set but not used variable 'event'
2019-10-23 7:36 [PATCH net-next] net: lan78xx: remove set but not used variable 'event' YueHaibing
@ 2019-10-24 4:38 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2019-10-24 4:38 UTC (permalink / raw)
To: yuehaibing; +Cc: woojung.huh, UNGLinuxDriver, netdev, linux-usb, linux-kernel
From: YueHaibing <yuehaibing@huawei.com>
Date: Wed, 23 Oct 2019 15:36:26 +0800
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/net/usb/lan78xx.c:3995:6: warning:
> variable event set but not used [-Wunused-but-set-variable]
>
> It is never used, so can be removed.
>
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-24 4:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-23 7:36 [PATCH net-next] net: lan78xx: remove set but not used variable 'event' YueHaibing
2019-10-24 4:38 ` 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).