Skip to content

Commit

Permalink
lan78xx: Remove unused timer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John Efstathiades authored and David S. Miller committed Aug 25, 2021
1 parent 9ceec7d commit 3bef6b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/usb/lan78xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 3bef6b9

Please sign in to comment.