From 2acf1ad1dd3d9d138a0c24bff55918efb8e953eb Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Mon, 24 Feb 2020 08:36:09 -0500 Subject: [PATCH] zebra: Cleanup set but unused variables There existed some variables set but never used. Clean this up. Signed-off-by: Donald Sharp --- zebra/ipforward_proc.c | 4 +--- zebra/zebra_vty.c | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/zebra/ipforward_proc.c b/zebra/ipforward_proc.c index 226f722937..4bd160ddbc 100644 --- a/zebra/ipforward_proc.c +++ b/zebra/ipforward_proc.c @@ -34,9 +34,7 @@ static const char proc_net_snmp[] = "/proc/net/snmp"; static void dropline(FILE *fp) { - int c; - - while ((c = getc(fp)) != '\n') + while (getc(fp) != '\n') ; } diff --git a/zebra/zebra_vty.c b/zebra/zebra_vty.c index ce6b0d1bee..7ce1b57df8 100644 --- a/zebra/zebra_vty.c +++ b/zebra/zebra_vty.c @@ -1532,10 +1532,8 @@ DEFPY (show_route, if (vrf_all) { RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) { - struct route_table *route_table; - if ((zvrf = vrf->info) == NULL - || (route_table = zvrf->table[afi][SAFI_UNICAST]) == NULL) + || (zvrf->table[afi][SAFI_UNICAST] == NULL)) continue; if (table_all) -- 2.39.5