]> git.puffer.fish Git - mirror/frr.git/commitdiff
zebra: Remove `first_p` which is never used 8239/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 12 Mar 2021 02:22:53 +0000 (21:22 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 12 Mar 2021 02:22:53 +0000 (21:22 -0500)
Remove dead code.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
zebra/zebra_vty.c

index f18d8fbb6d9151fc2af304eb14be4201d357b8d4..4223f1d52750e6a2708343c9a55e9e468e1427be 100644 (file)
@@ -844,7 +844,6 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn,
        const rib_dest_t *dest = rib_dest_from_rnode(rn);
        const struct nexthop_group *nhg;
        char up_str[MONOTIME_STRLEN];
-       bool first_p = true;
        bool nhg_from_backup = false;
 
        uptime = monotime(NULL);
@@ -997,9 +996,7 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn,
 
        /* Nexthop information. */
        for (ALL_NEXTHOPS_PTR(nhg, nexthop)) {
-               if (first_p) {
-                       first_p = false;
-               } else if (nhg_from_backup) {
+               if (nhg_from_backup) {
                        vty_out(vty, "  b%c%*c",
                                re_status_output_char(re, nexthop, is_fib),
                                len - 3 + (2 * nexthop_level(nexthop)), ' ');