From 848cdf56dcf38b21c5477ba184b4202984532153 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Thu, 16 Jan 2025 05:27:34 +0900 Subject: [PATCH] udev,network: drop unnecessary check for result of sd_listen_fds_with_names() --- src/network/networkd-manager.c | 3 --- src/udev/udev-manager.c | 3 --- 2 files changed, 6 deletions(-) diff --git a/src/network/networkd-manager.c b/src/network/networkd-manager.c index 8061976d7b9..867feeff1b4 100644 --- a/src/network/networkd-manager.c +++ b/src/network/networkd-manager.c @@ -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; diff --git a/src/udev/udev-manager.c b/src/udev/udev-manager.c index 19ea8e8bca7..2f97205c91d 100644 --- a/src/udev/udev-manager.c +++ b/src/udev/udev-manager.c @@ -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; -- 2.47.3