evdev_device_suspend() is a void function
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 12 Jul 2016 21:39:59 +0000 (07:39 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Mon, 18 Jul 2016 23:48:38 +0000 (09:48 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Yong Bakos <ybakos@humanoriented.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/evdev.c
src/evdev.h

index 1a0759b..3a7eda1 100644 (file)
@@ -2865,7 +2865,7 @@ evdev_notify_resumed_device(struct evdev_device *device)
        device->suspended = 0;
 }
 
-int
+void
 evdev_device_suspend(struct evdev_device *device)
 {
        struct libinput *libinput = evdev_libinput_context(device);
@@ -2890,8 +2890,6 @@ evdev_device_suspend(struct evdev_device *device)
                close_restricted(libinput, device->fd);
                device->fd = -1;
        }
-
-       return 0;
 }
 
 int
index f9c0dd1..f1133ee 100644 (file)
@@ -415,7 +415,7 @@ double
 evdev_device_transform_y(struct evdev_device *device,
                         double y,
                         uint32_t height);
-int
+void
 evdev_device_suspend(struct evdev_device *device);
 
 int