diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-03-11 21:22:53 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-03-11 21:22:53 -0500 |
| commit | 8617eb7c5ff9fe9ae1efb69af1493585d69a37f5 (patch) | |
| tree | bdfe12248624bf1d8a94901027d65245ceb37668 | |
| parent | b65540e99ac98c1ec47a72b5c874c57fb1dcc60e (diff) | |
zebra: Remove `first_p` which is never used
Remove dead code.
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
| -rw-r--r-- | zebra/zebra_vty.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index f18d8fbb6d..4223f1d527 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -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)), ' '); |
