test: ignore a failure to UI_DEV_DESTROY the device
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 3 Mar 2016 21:17:18 +0000 (07:17 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 3 Mar 2016 21:26:53 +0000 (07:26 +1000)
Coverity complains about it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
test/test-common-uinput.c

index 617b8e2..48200b6 100644 (file)
@@ -113,7 +113,7 @@ uinput_device_free(struct uinput_device *dev)
                return;
 
        if (dev->uinput_fd != -1) {
-               ioctl(dev->uinput_fd, UI_DEV_DESTROY, NULL);
+               (void)ioctl(dev->uinput_fd, UI_DEV_DESTROY, NULL);
                close(dev->uinput_fd);
        }
        if (dev->dev_fd != -1)