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

Benjamin Tissoires benjamin.tissoires at gmail.com
Fri Mar 4 08:05:00 UTC 2016


On Thu, Mar 3, 2016 at 10:29 PM, Peter Hutterer
<peter.hutterer at who-t.net> wrote:
> Coverity complains about it.
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---

Series looks good to me:
Reviewed-by: Benjamin Tissoires <benjamin.tissoires at gmail.com>

Cheers,
Benjamin

>  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
>
> _______________________________________________
> Input-tools mailing list
> Input-tools at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/input-tools


More information about the Input-tools mailing list