]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: set_put() here does not returns -EEXIST
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 May 2019 03:46:02 +0000 (12:46 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 18 May 2019 03:46:02 +0000 (12:46 +0900)
src/network/networkd-network.c

index fcfb6d2e17f881141367666b7148700d981873d4..ac8c08456b8a5815dcdfd307bd6407f9512e129f 100644 (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);