summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-ipv6-proxy-ndp.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-01-26 17:20:50 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-01-26 17:28:28 +0100
commit190d05c0e798583d577e5f3ad871a5b615a225ab (patch)
tree67b997997e80e42a6cd478d8f1a684914bc79e8b /src/network/networkd-ipv6-proxy-ndp.c
parentnetwork: drop wrong flag for neighbor entry (diff)
downloadsystemd-190d05c0e798583d577e5f3ad871a5b615a225ab.tar.xz
systemd-190d05c0e798583d577e5f3ad871a5b615a225ab.zip
network: drop unnecessary condition in error path
See neigh_add() in kernel. It does not return EEXIST.
Diffstat (limited to '')
-rw-r--r--src/network/networkd-ipv6-proxy-ndp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-ipv6-proxy-ndp.c b/src/network/networkd-ipv6-proxy-ndp.c
index 7a370e9318..57b3fb0118 100644
--- a/src/network/networkd-ipv6-proxy-ndp.c
+++ b/src/network/networkd-ipv6-proxy-ndp.c
@@ -18,7 +18,7 @@ static int set_ipv6_proxy_ndp_address_handler(sd_netlink *rtnl, sd_netlink_messa
assert(link);
r = sd_netlink_message_get_errno(m);
- if (r < 0 && r != -EEXIST)
+ if (r < 0)
log_link_message_warning_errno(link, m, r, "Could not add IPv6 proxy ndp address entry, ignoring");
return 1;