]> git.puffer.fish Git - mirror/frr.git/commitdiff
isisd: ifp cannot be NULL
authorDonald Sharp <sharpd@nvidia.com>
Fri, 11 Sep 2020 18:30:24 +0000 (14:30 -0400)
committerIgor Ryzhov <iryzhov@nfware.com>
Tue, 6 Oct 2020 12:54:24 +0000 (15:54 +0300)
the ifp pointer cannot be NULL when we get to this point
in the code.

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

index 31fe41db82d3ecfc6e3f52bc0ad3003aea0e7caf..63e1b4e441af8c6ccf48441faa420d23926b3200 100644 (file)
@@ -235,7 +235,7 @@ DEFPY_YANG(ip_router_isis, ip_router_isis_cmd,
        }
 
        /* check if the interface is a loopback and if so set it as passive */
-       if (ifp && if_is_loopback(ifp))
+       if (if_is_loopback(ifp))
                nb_cli_enqueue_change(vty, "./frr-isisd:isis/passive",
                                      NB_OP_MODIFY, "true");
 
@@ -326,7 +326,7 @@ DEFPY_YANG(ip6_router_isis, ip6_router_isis_cmd,
        }
 
        /* check if the interface is a loopback and if so set it as passive */
-       if (ifp && if_is_loopback(ifp))
+       if (if_is_loopback(ifp))
                nb_cli_enqueue_change(vty, "./frr-isisd:isis/passive",
                                      NB_OP_MODIFY, "true");