Message ID | 20191023073626.33956-1-yuehaibing@huawei.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | 337d866a8014987dd45cf138ddcb9eca1ae44d56 |
Headers | show |
Series | [net-next] net: lan78xx: remove set but not used variable 'event' | expand |
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.
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);
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(-)