]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: Remove dead code
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 Mar 2017 19:52:36 +0000 (15:52 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 16 Mar 2017 23:00:29 +0000 (19:00 -0400)
This code is impossible to reach.

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

index 5fc5d08d1662bd6bcd67b8fcc96152381f512787..12632c13bb4cd21adb2d8379fd9f26270657f6b3 100644 (file)
@@ -357,12 +357,6 @@ pim_update_upstream_nh (struct pim_nexthop_cache *pnc)
       enum pim_rpf_result rpf_result;
       struct pim_rpf old;
 
-      if (up == NULL)
-        {
-          zlog_debug ("%s: Upstream node is NULL ", __PRETTY_FUNCTION__);
-          continue;
-        }
-
       old.source_nexthop.interface = up->rpf.source_nexthop.interface;
       rpf_result = pim_rpf_update (up, &old, 0);
       if (rpf_result == PIM_RPF_FAILURE)