net: lan78xx: remove set but not used variable 'event'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 23 Oct 2019 07:36:26 +0000 (15:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Oct 2019 04:37:48 +0000 (21:37 -0700)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c

index 62948098191ff0462436b3b5fb677e629c45db70..f8c0818e56c9dfdc996cf875dc02454f953f0701 100644 (file)
@@ -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);