]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
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)
committerLennart Poettering <lennart@poettering.net>
Fri, 2 Mar 2018 10:55:16 +0000 (11:55 +0100)
src/login/logind-session-device.c

index 65b4bb849bf98480273226ba9a9592fb092cb399..706245de423a30460ece5855927a9ebdecf9d2d9 100644 (file)
@@ -106,7 +106,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);
@@ -118,8 +118,6 @@ static int sd_eviocrevoke(int fd) {
                         warned = true;
                 }
         }
-
-        return 0;
 }
 
 static int sd_drmsetmaster(int fd) {