]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: Remove dead call to get_afi_safi_str
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 31 Jan 2020 15:30:22 +0000 (10:30 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 4 Feb 2020 13:10:52 +0000 (08:10 -0500)
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>
bgpd/bgp_vty.c

index 1cd2f0a3973bfd9b09170166261574b0eb9839df..645c5020202a3e767b1931a0572148449c1b1ac8 100644 (file)
@@ -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],