]> git.puffer.fish Git - matthieu/frr.git/commitdiff
eigrpd: Remove unnecessary test for pointer
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sun, 10 Feb 2019 23:19:35 +0000 (18:19 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 11 Feb 2019 12:13:41 +0000 (07:13 -0500)
If we are inside the for loop then eigrp *must* be valid.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
eigrpd/eigrp_network.c

index 6bb619f0e1953ad765a43c173a513d9e3fae8b50..944bf6f55cea10062bb61a77791400b35cffbbe4 100644 (file)
@@ -293,7 +293,7 @@ void eigrp_if_update(struct interface *ifp)
         */
        for (ALL_LIST_ELEMENTS(eigrp_om->eigrp, node, nnode, eigrp)) {
                /* EIGRP must be on and Router-ID must be configured. */
-               if (!eigrp || eigrp->router_id.s_addr == 0)
+               if (eigrp->router_id.s_addr == 0)
                        continue;
 
                /* Run each network for this interface. */