mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-04-03 05:40:36 +02:00
test: ignore a failure to UI_DEV_DESTROY the device
Coverity complains about it. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
parent
2a27abf824
commit
46b8381f0c
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue