]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
netlink: remove dead code, iface2 cannot be NULL inside the iterator
authorVincent Bernat <vincent@bernat.ch>
Sun, 21 Mar 2021 09:56:52 +0000 (10:56 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sun, 21 Mar 2021 09:56:52 +0000 (10:56 +0100)
src/daemon/netlink.c

index 2c0425282dca292354c8bc81f625bdc38126b7da..5c89ade9df386874871bb59bf68426eee5344fe9 100644 (file)
@@ -775,8 +775,6 @@ end:
                                                }
                                                break;
                                        }
-                                       if (iface2 == NULL)
-                                               iface1->lower = NULL;
                                }
                        } else {
                                iface1->lower = NULL;