Commit ed7be01f authored by Jan Kiszka's avatar Jan Kiszka
Browse files

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 ffe71327
......@@ -453,7 +453,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