[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191023073626.33956-1-yuehaibing@huawei.com>
Date: Wed, 23 Oct 2019 15:36:26 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <woojung.huh@...rochip.com>, <UNGLinuxDriver@...rochip.com>,
<davem@...emloft.net>
CC: <netdev@...r.kernel.org>, <linux-usb@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH net-next] net: lan78xx: remove set but not used variable 'event'
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@...wei.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
Powered by blists - more mailing lists