diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-05-29 12:47:41 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2024-05-30 12:07:57 +0200 |
commit | 613b698eb45f733645a5a9ba1b497c6c76c7868b (patch) | |
tree | 5a102b1ff4a5f0b89c4c1fe13856010cfeb28ec3 /src/basic/fd-util.c | |
parent | basic/fd-util: drop unnecessary {} (diff) | |
download | systemd-613b698eb45f733645a5a9ba1b497c6c76c7868b.tar.xz systemd-613b698eb45f733645a5a9ba1b497c6c76c7868b.zip |
basic/fd-util: drop report from fd_cloexec_many
fd_cloexec_many promised to report if work was done, but that code was
not effective, because it always reported true if any fds were open.
But no callers care about the return value, so let's just drop this.
Diffstat (limited to 'src/basic/fd-util.c')
-rw-r--r-- | src/basic/fd-util.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/basic/fd-util.c b/src/basic/fd-util.c index f9cac3d99e..c33cc6f783 100644 --- a/src/basic/fd-util.c +++ b/src/basic/fd-util.c @@ -212,9 +212,6 @@ int fd_cloexec_many(const int fds[], size_t n_fds, bool cloexec) { continue; RET_GATHER(r, fd_cloexec(*fd, cloexec)); - - if (r >= 0) - r = 1; /* report if we did anything */ } return r; |