mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
basic: drop a redundant if statement
This commit is contained in:
parent
973bc32ab6
commit
60d7a2029a
@ -153,10 +153,8 @@ int pipe_eof(int fd) {
|
||||
int r;
|
||||
|
||||
r = fd_wait_for_event(fd, POLLIN, 0);
|
||||
if (r < 0)
|
||||
if (r <= 0)
|
||||
return r;
|
||||
if (r == 0)
|
||||
return 0;
|
||||
|
||||
return !!(r & POLLHUP);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user