1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-29 06:50:16 +03:00

udev,network: drop unnecessary check for result of sd_listen_fds_with_names()

This commit is contained in:
Yu Watanabe 2025-01-16 05:27:34 +09:00
parent a75abf1ab9
commit 848cdf56dc
2 changed files with 0 additions and 6 deletions

View File

@ -230,9 +230,6 @@ static int manager_listen_fds(Manager *m, int *ret_rtnl_fd) {
if (n < 0)
return n;
if (strv_length(names) != (size_t) n)
return -EINVAL;
for (int i = 0; i < n; i++) {
int fd = i + SD_LISTEN_FDS_START;

View File

@ -1111,9 +1111,6 @@ static int manager_listen_fds(Manager *manager) {
if (n < 0)
return n;
if (strv_length(names) != (size_t) n)
return -EIO;
for (int i = 0; i < n; i++) {
int fd = SD_LISTEN_FDS_START + i;