libsystemd: drop a redundant if statement

This commit is contained in:
Frantisek Sumsal 2020-09-14 16:18:02 +02:00
parent 890ea05ac2
commit 8d16f29b23
1 changed files with 1 additions and 3 deletions

View File

@ -495,10 +495,8 @@ static int rtnl_poll(sd_netlink *rtnl, bool need_more, uint64_t timeout_usec) {
m = timeout_usec;
r = fd_wait_for_event(rtnl->fd, e, m);
if (r < 0)
if (r <= 0)
return r;
if (r == 0)
return 0;
return 1;
}