Messages in this thread | | | Date | Wed, 20 Jun 2018 09:07:04 +0900 (KST) | Subject | Re: [PATCH] net/usb/drivers: Remove useless hrtimer_active check | From | David Miller <> |
| |
From: Daniel Lezcano <daniel.lezcano@linaro.org> 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@linaro.org>
Applied.
| |