Commit a4d1c1e1 authored by Jan Kiszka's avatar Jan Kiszka

ipipe: Drop unneeded NULL check from grab_timer

If evtdev should be NULL, we will crash on get_dev_mode(evtdev) further
down. So this test is never false in absence of sever bugs.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent e94b0a88
......@@ -452,7 +452,7 @@ static void grab_timer(void *arg)
return;
}
steal = evtdev != NULL && !clockevent_state_detached(evtdev);
steal = !clockevent_state_detached(evtdev);
if (steal && evtdev->ipipe_stolen == 0) {
timer->real_mult = evtdev->mult;
timer->real_shift = evtdev->shift;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment