From e3edd1d1d4c118acdcd6424a43d57fd7d7584aa7 Mon Sep 17 00:00:00 2001 From: Renato Westphal Date: Fri, 16 Dec 2016 12:51:07 -0200 Subject: [PATCH] zebra: remove unused variable It looks like 'nexthop_fib_num' has been lingering around since 2003 without any use. Remove it. Signed-off-by: Renato Westphal --- 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 a30c093fba..d80ea6cbd8 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 a792bcc657..e48da0479b 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))