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

This commit is contained in:
Yu Watanabe
2025-01-19 23:54:41 +09:00
parent a75abf1ab9
commit 848cdf56dc
2 changed files with 0 additions and 6 deletions
-3
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;
-3
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;