Commit c8d22938 authored by Peter Hutterer's avatar Peter Hutterer

Remove superfluous check for next being NULL

is_libinput_device(next) causes a dereference of next anyway, so this cannot
ever be NULL.

Besides, if next ends up as NULL that means we have lost count of how many
remaining devices use libinput, so we have other issues.

Found by coverity.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent a7014aa8
......@@ -1162,8 +1162,7 @@ swap_registered_device(InputInfoPtr pInfo)
int sigstate = xf86BlockSIGIO();
if (next) /* shouldn't ever be NULL anyway */
driver_context.registered_InputInfoPtr = next;
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