tree-wide: flatten nested error checks

This commit is contained in:
David Tardon
2025-12-10 18:59:44 +09:00
committed by Yu Watanabe
parent 13a74f350e
commit 94446e4f5a
13 changed files with 75 additions and 106 deletions
+6 -10
View File
@@ -1263,12 +1263,10 @@ int flush_accept(int fd) {
int cfd;
r = fd_wait_for_event(fd, POLLIN, 0);
if (r < 0) {
if (r == -EINTR)
continue;
if (r == -EINTR)
continue;
if (r < 0)
return r;
}
if (r == 0)
return 0;
@@ -1305,12 +1303,10 @@ ssize_t flush_mqueue(int fd) {
ssize_t l;
r = fd_wait_for_event(fd, POLLIN, /* timeout= */ 0);
if (r < 0) {
if (r == -EINTR)
continue;
if (r == -EINTR)
continue;
if (r < 0)
return r;
}
if (r == 0)
return count;