From: Renato Westphal Date: Fri, 16 Dec 2016 14:51:07 +0000 (-0200) Subject: zebra: remove unused variable X-Git-Tag: frr-2.0-rc1~17^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F31%2Fhead;p=mirror%2Ffrr.git 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 --- 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))