summaryrefslogtreecommitdiff
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorJohn Efstathiades <john.efstathiades@pebblebay.com>2021-08-24 21:56:05 +0300
committerDavid S. Miller <davem@davemloft.net>2021-08-25 12:55:42 +0300
commit3bef6b9e98888456805331201c0d8587c14fa108 (patch)
tree58d3e4fe1c7d25c67242809d9046affc09773bbd /drivers/net/usb
parent9ceec7d33adf9647293f24d2fd9a055b89c63864 (diff)
downloadlinux-3bef6b9e98888456805331201c0d8587c14fa108.tar.xz
lan78xx: Remove unused timer
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>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/lan78xx.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/usb/lan78xx.c b/drivers/net/usb/lan78xx.c
index ece044dd0236..2896d31e5573 100644
--- a/drivers/net/usb/lan78xx.c
+++ b/drivers/net/usb/lan78xx.c
@@ -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);
}
}