mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 23:58:44 +00:00
Merge pull request #8239 from donaldsharp/first_p
zebra: Remove `first_p` which is never used
This commit is contained in:
commit
c0290e0b62
@ -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 rib_dest_t *dest = rib_dest_from_rnode(rn);
|
||||||
const struct nexthop_group *nhg;
|
const struct nexthop_group *nhg;
|
||||||
char up_str[MONOTIME_STRLEN];
|
char up_str[MONOTIME_STRLEN];
|
||||||
bool first_p = true;
|
|
||||||
bool nhg_from_backup = false;
|
bool nhg_from_backup = false;
|
||||||
|
|
||||||
uptime = monotime(NULL);
|
uptime = monotime(NULL);
|
||||||
@ -997,9 +996,7 @@ static void vty_show_ip_route(struct vty *vty, struct route_node *rn,
|
|||||||
|
|
||||||
/* Nexthop information. */
|
/* Nexthop information. */
|
||||||
for (ALL_NEXTHOPS_PTR(nhg, nexthop)) {
|
for (ALL_NEXTHOPS_PTR(nhg, nexthop)) {
|
||||||
if (first_p) {
|
if (nhg_from_backup) {
|
||||||
first_p = false;
|
|
||||||
} else if (nhg_from_backup) {
|
|
||||||
vty_out(vty, " b%c%*c",
|
vty_out(vty, " b%c%*c",
|
||||||
re_status_output_char(re, nexthop, is_fib),
|
re_status_output_char(re, nexthop, is_fib),
|
||||||
len - 3 + (2 * nexthop_level(nexthop)), ' ');
|
len - 3 + (2 * nexthop_level(nexthop)), ' ');
|
||||||
|
Loading…
Reference in New Issue
Block a user