OSDN Git Service

lan78xx: Remove unused timer
authorJohn Efstathiades <john.efstathiades@pebblebay.com>
Tue, 24 Aug 2021 18:56:05 +0000 (19:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Aug 2021 09:55:42 +0000 (10:55 +0100)
Remove kernel timer that is not used by the driver.

Signed-off-by: John Efstathiades <john.efstathiades@pebblebay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/lan78xx.c

index ece044d..2896d31 100644 (file)
@@ -393,7 +393,6 @@ struct lan78xx_net {
        unsigned char           suspend_count;
 
        unsigned int            maxpacket;
-       struct timer_list       delay;
        struct timer_list       stat_monitor;
 
        unsigned long           data[5];
@@ -3425,8 +3424,7 @@ static void lan78xx_bh(struct tasklet_struct *t)
                if (!skb_queue_empty(&dev->txq_pend))
                        lan78xx_tx_bh(dev);
 
-               if (!timer_pending(&dev->delay) &&
-                   !test_bit(EVENT_RX_HALT, &dev->flags))
+               if (!test_bit(EVENT_RX_HALT, &dev->flags))
                        lan78xx_rx_bh(dev);
        }
 }