basic: drop a redundant if statement
This commit is contained in:
+1
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user