net/usb/drivers: Remove useless hrtimer_active check
commit2aee167c3675b088c86f648f834e793a0085e04d
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 19 Jun 2018 14:14:30 +0000 (19 16:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Jun 2018 00:05:44 +0000 (20 09:05 +0900)
treec9ac3edeb7f6851bb1a0a639732f665acd0a02e5
parentcbf56c29624fa056a0c1c3d177e67aa51a7fd8d6
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>
drivers/net/usb/cdc_ncm.c