mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2026-05-05 04:08:00 +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;
|
return;
|
||||||
|
|
||||||
if (dev->uinput_fd != -1) {
|
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);
|
close(dev->uinput_fd);
|
||||||
}
|
}
|
||||||
if (dev->dev_fd != -1)
|
if (dev->dev_fd != -1)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue