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…
Reference in New Issue