]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: write variable is never used in cli function
authorDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 26 Oct 2019 01:35:04 +0000 (21:35 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Sat, 26 Oct 2019 01:35:04 +0000 (21:35 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgpd.c

index 1a3fa2c921f5df7c69bcd528e40d252c9f4c870e..a2d4c0101eba0dcb34ab848e5aab229293e8b2c7 100644 (file)
@@ -7530,7 +7530,6 @@ static void bgp_config_write_family(struct vty *vty, struct bgp *bgp, afi_t afi,
 
 int bgp_config_write(struct vty *vty)
 {
-       int write = 0;
        struct bgp *bgp;
        struct peer_group *group;
        struct peer *peer;
@@ -7541,9 +7540,6 @@ int bgp_config_write(struct vty *vty)
                vty_out(vty, "bgp route-map delay-timer %u\n",
                        bm->rmap_update_timer);
 
-       if (write)
-               vty_out(vty, "!\n");
-
        /* BGP configuration. */
        for (ALL_LIST_ELEMENTS(bm->bgp, mnode, mnnode, bgp)) {