From 13c01b7e27330a0d5156fccf26b259e64423d121 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 25 Oct 2019 21:10:31 -0400 Subject: [PATCH] bgpd: bgp_path_info_mpath_next only returns values Since we don't set a value from the return of bgp_path_info_mpath_next it is impossible for this function to do anything as such the if statement is dead code as well. Signed-off-by: Donald Sharp --- bgpd/bgp_mpath.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c index 648c3be47e..d37bf54734 100644 --- a/bgpd/bgp_mpath.c +++ b/bgpd/bgp_mpath.c @@ -614,8 +614,6 @@ void bgp_path_info_mpath_update(struct bgp_node *rn, if ((mpath_count < maxpaths) && (new_mpath != new_best) && bgp_path_info_nexthop_cmp(prev_mpath, new_mpath)) { - if (new_mpath == next_mpath) - bgp_path_info_mpath_next(new_mpath); bgp_path_info_mpath_dequeue(new_mpath); bgp_path_info_mpath_enqueue(prev_mpath, -- 2.39.5