[cmaster-next] [PATCH 3/3] zebra: remove unused variable
Renato Westphal
renato at opensourcerouting.org
Fri Dec 16 10:23:39 EST 2016
It looks like 'nexthop_fib_num' has been lingering around since 2003
without any use. Remove it.
Signed-off-by: Renato Westphal <renato at opensourcerouting.org>
---
zebra/rib.h | 1 -
zebra/zebra_rib.c | 5 ++---
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/zebra/rib.h b/zebra/rib.h
index a30c093..d80ea6c 100644
--- a/zebra/rib.h
+++ b/zebra/rib.h
@@ -93,7 +93,6 @@ struct rib
/* Nexthop information. */
u_char nexthop_num;
u_char nexthop_active_num;
- u_char nexthop_fib_num;
};
/* meta-queue structure:
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index a792bcc..e48da04 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -2459,11 +2459,10 @@ void _rib_dump (const char * func,
);
zlog_debug
(
- "%s: nexthop_num == %u, nexthop_active_num == %u, nexthop_fib_num == %u",
+ "%s: nexthop_num == %u, nexthop_active_num == %u",
func,
rib->nexthop_num,
- rib->nexthop_active_num,
- rib->nexthop_fib_num
+ rib->nexthop_active_num
);
for (ALL_NEXTHOPS_RO(rib->nexthop, nexthop, tnexthop, recursing))
--
1.9.1
More information about the dev
mailing list