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:
parent
a75abf1ab9
commit
848cdf56dc
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user