From: Peter Hutterer Date: Fri, 22 Aug 2014 01:47:38 +0000 (+1000) Subject: uinput: explicitly ignore the UI_DEV_DESTROY return value X-Git-Tag: libevdev-1.2.99.902~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6247e5c12a6b1df5a0a68ea1beeddb48b9f7a495;p=platform%2Fupstream%2Flibevdev.git uinput: explicitly ignore the UI_DEV_DESTROY return value 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 --- diff --git a/libevdev/libevdev-uinput.c b/libevdev/libevdev-uinput.c index ea2b025..33b5317 100644 --- a/libevdev/libevdev-uinput.c +++ b/libevdev/libevdev-uinput.c @@ -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);