Skip to content

Commit a3ddf73

Browse files
committed
logind: voidify a function we never check the return value of
1 parent 47920c4 commit a3ddf73

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/login/logind-session-device.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static int session_device_notify(SessionDevice *sd, enum SessionDeviceNotificati
106106
return sd_bus_send(sd->session->manager->bus, m, NULL);
107107
}
108108

109-
static int sd_eviocrevoke(int fd) {
109+
static void sd_eviocrevoke(int fd) {
110110
static bool warned = false;
111111

112112
assert(fd >= 0);
@@ -118,8 +118,6 @@ static int sd_eviocrevoke(int fd) {
118118
warned = true;
119119
}
120120
}
121-
122-
return 0;
123121
}
124122

125123
static int sd_drmsetmaster(int fd) {

0 commit comments

Comments
 (0)