mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-09 09:47:11 +00:00
zebra: Cleanup set but unused variables
There existed some variables set but never used. Clean this up. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
f67de3ee72
commit
2acf1ad1dd
@ -34,9 +34,7 @@ static const char proc_net_snmp[] = "/proc/net/snmp";
|
|||||||
|
|
||||||
static void dropline(FILE *fp)
|
static void dropline(FILE *fp)
|
||||||
{
|
{
|
||||||
int c;
|
while (getc(fp) != '\n')
|
||||||
|
|
||||||
while ((c = getc(fp)) != '\n')
|
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1532,10 +1532,8 @@ DEFPY (show_route,
|
|||||||
|
|
||||||
if (vrf_all) {
|
if (vrf_all) {
|
||||||
RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) {
|
RB_FOREACH (vrf, vrf_name_head, &vrfs_by_name) {
|
||||||
struct route_table *route_table;
|
|
||||||
|
|
||||||
if ((zvrf = vrf->info) == NULL
|
if ((zvrf = vrf->info) == NULL
|
||||||
|| (route_table = zvrf->table[afi][SAFI_UNICAST]) == NULL)
|
|| (zvrf->table[afi][SAFI_UNICAST] == NULL))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (table_all)
|
if (table_all)
|
||||||
|
Loading…
Reference in New Issue
Block a user