chiark / gitweb /
logind: voidify a function we never check the return value of
authorLennart Poettering <lennart@poettering.net>
Fri, 2 Mar 2018 10:55:16 +0000 (11:55 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:59:11 +0000 (07:59 +0200)
src/login/logind-session-device.c

index bc9164dc88846c37d24b02b17a8ff42f5fbd1428..4a378e14c5e1ae5b998bb6b4e6869d30e9aaa5bd 100644 (file)
@@ -110,7 +110,7 @@ static int session_device_notify(SessionDevice *sd, enum SessionDeviceNotificati
         return sd_bus_send(sd->session->manager->bus, m, NULL);
 }
 
-static int sd_eviocrevoke(int fd) {
+static void sd_eviocrevoke(int fd) {
         static bool warned = false;
 
         assert(fd >= 0);
@@ -122,8 +122,6 @@ static int sd_eviocrevoke(int fd) {
                         warned = true;
                 }
         }
-
-        return 0;
 }
 
 static int sd_drmsetmaster(int fd) {