From 783fc3cd45eb2160304b749535c61f8830d9e1ba Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sun, 18 Feb 2018 17:23:50 -0500 Subject: zebra: Fix warning found in CI system The Clang SA system found a new issue: Dead store: Dead assignment. This fixes that issue Signed-off-by: Donald Sharp --- zebra/zebra_ns.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'zebra/zebra_ns.c') diff --git a/zebra/zebra_ns.c b/zebra/zebra_ns.c index e8bdadee5..c7561f426 100644 --- a/zebra/zebra_ns.c +++ b/zebra/zebra_ns.c @@ -124,7 +124,7 @@ struct route_table *zebra_ns_get_table(struct zebra_ns *zns, return znst->table; } -static struct zebra_ns_table *zebra_ns_free_table(struct zebra_ns_table *znst) +static void zebra_ns_free_table(struct zebra_ns_table *znst) { void *table_info; rib_close_table(znst->table); @@ -133,7 +133,6 @@ static struct zebra_ns_table *zebra_ns_free_table(struct zebra_ns_table *znst) route_table_finish(znst->table); XFREE(MTYPE_RIB_TABLE_INFO, table_info); XFREE(MTYPE_ZEBRA_NS, znst); - return NULL; } int zebra_ns_disable(ns_id_t ns_id, void **info) @@ -145,7 +144,7 @@ int zebra_ns_disable(ns_id_t ns_id, void **info) znst = RB_ROOT(zebra_ns_table_head, &zns->ns_tables); RB_REMOVE(zebra_ns_table_head, &zns->ns_tables, znst); - znst = zebra_ns_free_table(znst); + zebra_ns_free_table(znst); } route_table_finish(zns->if_table); zebra_vxlan_ns_disable(zns); -- cgit v1.2.3