From: paco Date: Thu, 21 Jun 2018 15:22:55 +0000 (+0200) Subject: bgpd: dead code (Coverity 1399238) X-Git-Tag: frr-6.1-dev~270^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=d87ff2ddf403b6bc1b6d57badf8065cf4b65b732;p=matthieu%2Ffrr.git bgpd: dead code (Coverity 1399238) Signed-off-by: F. Aragon --- diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index 95e7def8fb..084cdfeb4b 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -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); } }