summaryrefslogtreecommitdiff
path: root/bgpd/bgp_mpath.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-10-25 21:10:31 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-10-25 21:10:31 -0400
commit13c01b7e27330a0d5156fccf26b259e64423d121 (patch)
treeebbb9d7efb4d2a471e0de6b62aac0e48d74f6d2a /bgpd/bgp_mpath.c
parent22df2d8aaf537318425b9cdca9757bf58f98ecda (diff)
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 <sharpd@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_mpath.c')
-rw-r--r--bgpd/bgp_mpath.c2
1 files changed, 0 insertions, 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,