Shuts up coverity because it doesn't know that by the time we get here, we're
guaranteed that the device exists. Otherwise the list() call a few lines above
would've failed and we wouldn't get here.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
if (argc >= 1) {
XIDeviceInfo *info;
info = xi2_find_device_info(display, argv[0]);
+ /* info is alway valid, the list() call exits if the device
+ cannot be found, but let's shut up coverity */
+ if (!info)
+ return EXIT_FAILURE;
deviceid = info->deviceid;
}