diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-02-24 14:37:34 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2020-02-27 15:41:58 +0100 |
commit | 6e3e2c6d5f1d099a208b34c2164baf7679ad551e (patch) | |
tree | 5fdf775e6ff3dc57e22dd2669107551f52884d6e /ospfd/ospf_zebra.c | |
parent | zebra: Cleanup set but unused variables (diff) | |
download | frr-6e3e2c6d5f1d099a208b34c2164baf7679ad551e.tar.xz frr-6e3e2c6d5f1d099a208b34c2164baf7679ad551e.zip |
ospfd: Cleanup set but unused variables
There existed some variables set but never used. Clean this up.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_zebra.c')
-rw-r--r-- | ospfd/ospf_zebra.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ospfd/ospf_zebra.c b/ospfd/ospf_zebra.c index 64013435f..d41525665 100644 --- a/ospfd/ospf_zebra.c +++ b/ospfd/ospf_zebra.c @@ -1002,7 +1002,6 @@ static int ospf_distribute_list_update_timer(struct thread *thread) void ospf_distribute_list_update(struct ospf *ospf, int type, unsigned short instance) { - struct route_table *rt; struct ospf_external *ext; void **args = XCALLOC(MTYPE_OSPF_DIST_ARGS, sizeof(void *) * 2); @@ -1011,7 +1010,7 @@ void ospf_distribute_list_update(struct ospf *ospf, int type, /* External info does not exist. */ ext = ospf_external_lookup(ospf, type, instance); - if (!ext || !(rt = EXTERNAL_INFO(ext))) { + if (!ext || !EXTERNAL_INFO(ext)) { XFREE(MTYPE_OSPF_DIST_ARGS, args); return; } |