mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-25 08:10:05 +01:00
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 <peter.hutterer@who-t.net>
This commit is contained in:
parent
400e52c6a2
commit
6247e5c12a
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue