mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-21 18:03:41 +03:00
shared: drop a redundant if statement
This commit is contained in:
parent
8d16f29b23
commit
05827831a6
@ -1045,10 +1045,8 @@ int varlink_wait(Varlink *v, usec_t timeout) {
|
||||
return events;
|
||||
|
||||
r = fd_wait_for_event(fd, events, t);
|
||||
if (r < 0)
|
||||
if (r <= 0)
|
||||
return r;
|
||||
if (r == 0)
|
||||
return 0;
|
||||
|
||||
handle_revents(v, r);
|
||||
return 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user