Re: [PATCH] net/usb/drivers: Remove useless hrtimer_active check
From: David Miller
Date: Tue Jun 19 2018 - 20:07:16 EST
From: Daniel Lezcano <daniel.lezcano@xxxxxxxxxx>
Date: Tue, 19 Jun 2018 16:14:30 +0200
> 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@xxxxxxxxxx>
Applied.