]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: dead code (Coverity 1399238)
authorpaco <paco@voltanet.io>
Thu, 21 Jun 2018 15:22:55 +0000 (17:22 +0200)
committerpaco <paco@voltanet.io>
Thu, 21 Jun 2018 15:22:55 +0000 (17:22 +0200)
Signed-off-by: F. Aragon <paco@voltanet.io>
bgpd/bgp_route.c

index 95e7def8fb0eadea55c0905d48ba78c532c1ccb8..084cdfeb4b8db0487eb041c84decbac63c8ab455 100644 (file)
@@ -6564,14 +6564,8 @@ void route_vty_out(struct vty *vty, struct prefix *p, struct bgp_info *binfo,
                } else {
                        char buf[BUFSIZ];
 
-                       if ((safi == SAFI_MPLS_VPN) || (safi == SAFI_EVPN))
-                               snprintf(buf, sizeof(buf), "%s%s",
-                                       inet_ntoa(attr->mp_nexthop_global_in),
-                                       vrf_id_str);
-                       else
-                               snprintf(buf, sizeof(buf), "%s%s",
-                                       inet_ntoa(attr->nexthop),
-                                       vrf_id_str);
+                       snprintf(buf, sizeof(buf), "%s%s",
+                               inet_ntoa(attr->nexthop), vrf_id_str);
                        vty_out(vty, "%-16s", buf);
                }
        }