uinput: explicitly ignore the UI_DEV_DESTROY return value
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 22 Aug 2014 01:47:38 +0000 (11:47 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Sun, 24 Aug 2014 23:54:28 +0000 (09:54 +1000)
This can't fail in the kernel anyway, so cast it to shut up Coverity.
Error message:
"Calling function "ioctl(int, unsigned long, ...)" without checking return
 value (as is done elsewhere 35 out of 36 times)."

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
libevdev/libevdev-uinput.c

index ea2b025f851154f915f5d57dab4fb89501fe1303..33b53170f7fe3dd3fb3f5c21cb6b50d369c91af0 100644 (file)
@@ -358,7 +358,7 @@ libevdev_uinput_destroy(struct libevdev_uinput *uinput_dev)
        if (!uinput_dev)
                return;
 
-       ioctl(uinput_dev->fd, UI_DEV_DESTROY, NULL);
+       (void)ioctl(uinput_dev->fd, UI_DEV_DESTROY, NULL);
        if (uinput_dev->fd_is_managed)
                close(uinput_dev->fd);
        free(uinput_dev->syspath);