forked from Minki/linux
net/usb/drivers: Remove useless hrtimer_active check
The code does: if (hrtimer_active(&t)) hrtimer_cancel(&t); However, hrtimer_cancel() checks if the timer is active, so the test above is pointless. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cbf56c2962
commit
2aee167c36
@ -967,8 +967,7 @@ void cdc_ncm_unbind(struct usbnet *dev, struct usb_interface *intf)
|
||||
|
||||
atomic_set(&ctx->stop, 1);
|
||||
|
||||
if (hrtimer_active(&ctx->tx_timer))
|
||||
hrtimer_cancel(&ctx->tx_timer);
|
||||
hrtimer_cancel(&ctx->tx_timer);
|
||||
|
||||
tasklet_kill(&ctx->bh);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user