summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_vty.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-01-31 16:30:22 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2020-02-04 14:10:52 +0100
commit698ba8d02688ef7b9532c9a6dc441f841b9357ee (patch)
treed0b28b4fd8a7fdace7b24a3b32b098c361034c0c /bgpd/bgp_vty.c
parentbgpd: Tell Coverity SA that regex cannot be NULL here (diff)
downloadfrr-698ba8d02688ef7b9532c9a6dc441f841b9357ee.tar.xz
frr-698ba8d02688ef7b9532c9a6dc441f841b9357ee.zip
bgpd: Remove dead call to get_afi_safi_str
There is no need for a call into get_afi_safi_str for the json side since we add it based upon the afi safi str below. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--bgpd/bgp_vty.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 1cd2f0a39..645c50202 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -9593,8 +9593,7 @@ static void bgp_show_neighbor_graceful_restart_capability_per_afi_safi(
get_afi_safi_str(afi, safi, false));
vty_out(vty, " F bit : ");
- } else
- get_afi_safi_str(afi, safi, true);
+ }
if (peer->nsf[afi][safi]
&& CHECK_FLAG(peer->af_cap[afi][safi],