Don't return expression in function returning void
authorMichael Forney <mforney@mforney.org>
Sat, 15 Jun 2019 21:31:03 +0000 (14:31 -0700)
committerMichael Forney <mforney@mforney.org>
Sat, 15 Jun 2019 22:24:10 +0000 (15:24 -0700)
This is a constraint violation in ISO C[0].

[0] http://port70.net/~nsz/c/c11/n1570.html#6.8.6.4p1

Signed-off-by: Michael Forney <mforney@mforney.org>
src/libinput.c

index 896fde7..c0cd2fa 100644 (file)
@@ -1959,7 +1959,7 @@ open_restricted(struct libinput *libinput,
 void
 close_restricted(struct libinput *libinput, int fd)
 {
-       return libinput->interface->close_restricted(fd, libinput->user_data);
+       libinput->interface->close_restricted(fd, libinput->user_data);
 }
 
 bool