network: set_put() here does not returns -EEXIST

This commit is contained in:
Yu Watanabe 2019-05-18 12:46:02 +09:00
parent 5279914e2c
commit cdd22d5129

View file

@ -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);