From: Vincent Bernat Date: Sun, 21 Mar 2021 09:56:52 +0000 (+0100) Subject: netlink: remove dead code, iface2 cannot be NULL inside the iterator X-Git-Tag: 1.0.9~17 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6043b2b33b9122f66942d96ef8274df3dd4c0e4a;p=thirdparty%2Flldpd.git netlink: remove dead code, iface2 cannot be NULL inside the iterator --- diff --git a/src/daemon/netlink.c b/src/daemon/netlink.c index 2c042528..5c89ade9 100644 --- a/src/daemon/netlink.c +++ b/src/daemon/netlink.c @@ -775,8 +775,6 @@ end: } break; } - if (iface2 == NULL) - iface1->lower = NULL; } } else { iface1->lower = NULL;