From: Yu Watanabe Date: Sat, 18 May 2019 03:46:02 +0000 (+0900) Subject: network: set_put() here does not returns -EEXIST X-Git-Tag: v243-rc1~409^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdd22d5129a9218e5273355cb9d840f700869d28;p=thirdparty%2Fsystemd.git network: set_put() here does not returns -EEXIST --- diff --git a/src/network/networkd-network.c b/src/network/networkd-network.c index fcfb6d2e17f..ac8c08456b8 100644 --- a/src/network/networkd-network.c +++ b/src/network/networkd-network.c @@ -1658,11 +1658,6 @@ int config_parse_dhcp_black_listed_ip_address( return log_oom(); r = set_put(network->dhcp_black_listed_ip, UINT32_TO_PTR(ip.in.s_addr)); - if (r == -EEXIST) { - log_syntax(unit, LOG_WARNING, filename, line, r, - "DHCP black listed ip address is duplicated, ignoring assignment: %s", n); - continue; - } if (r < 0) log_syntax(unit, LOG_ERR, filename, line, r, "Failed to store DHCP black listed ip address '%s', ignoring assignment: %m", n);