Skip to contentSkip to conversation

netlink: delete unused function calls

PATCH Applied Arturo Borrero Gonzalez 2 participants 2 messages Feb 17, 2014 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 netlink: delete unused function calls

These functions calls, and the related `struct nft_table *nlt' are unused.

---
 src/netlink.c |    3 ---
 1 file changed, 3 deletions(-)
src/netlink.c +0 -3
index 6e797dc..ea02972 100644
@@ -703,7 +703,6 @@ int netlink_list_tables(struct netlink_ctx *ctx, const struct handle *h,
 			const struct location *loc)
 {
 	struct nft_table_list *table_cache;
-	struct nft_table *nlt;
 
 	table_cache = mnl_nft_table_dump(nf_sock, h->family);
 	if (table_cache == NULL)
@@ -711,9 +710,7 @@ int netlink_list_tables(struct netlink_ctx *ctx, const struct handle *h,
 					"Could not receive tables from kernel: %s",
 					strerror(errno));
 
-	nlt = alloc_nft_table(h);
 	nft_table_list_foreach(table_cache, list_table_cb, ctx);
-	nft_table_free(nlt);
 	nft_table_list_free(table_cache);
 	return 0;
 }
maintainer Applied
#1 lore raw
Quoted 1 line · Arturo Borrero Gonzalez

These functions calls, and the related `struct nft_table *nlt' are unused.

Applied, thanks Arturo.

Changed the title and description to insist on the unused variable.