sd-event: drop unnecessary local variable
This commit is contained in:
@@ -356,8 +356,6 @@ static bool event_pid_changed(sd_event *e) {
|
||||
}
|
||||
|
||||
static void source_io_unregister(sd_event_source *s) {
|
||||
int r;
|
||||
|
||||
assert(s);
|
||||
assert(s->type == SOURCE_IO);
|
||||
|
||||
@@ -367,8 +365,7 @@ static void source_io_unregister(sd_event_source *s) {
|
||||
if (!s->io.registered)
|
||||
return;
|
||||
|
||||
r = epoll_ctl(s->event->epoll_fd, EPOLL_CTL_DEL, s->io.fd, NULL);
|
||||
if (r < 0)
|
||||
if (epoll_ctl(s->event->epoll_fd, EPOLL_CTL_DEL, s->io.fd, NULL) < 0)
|
||||
log_debug_errno(errno, "Failed to remove source %s (type %s) from epoll: %m",
|
||||
strna(s->description), event_source_type_to_string(s->type));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user