[PATCH libevdev 2/2] test: ignore a failure to UI_DEV_DESTROY the device

Peter Hutterer peter.hutterer at who-t.net
Thu Mar 3 21:29:17 UTC 2016


Coverity complains about it.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 test/test-common-uinput.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/test-common-uinput.c b/test/test-common-uinput.c
index 617b8e2..48200b6 100644
--- a/test/test-common-uinput.c
+++ b/test/test-common-uinput.c
@@ -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)
-- 
2.5.0



More information about the Input-tools mailing list