From 46b8381f0c8f0c1453ed2e58efa6bd033a7674d4 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 4 Mar 2016 07:17:18 +1000 Subject: [PATCH] test: ignore a failure to UI_DEV_DESTROY the device Coverity complains about it. Signed-off-by: Peter Hutterer Reviewed-by: Benjamin Tissoires --- 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)