[Devel] [patch 02/20] [Network namespace] Delete unused destroy variable

dlezcano at fr.ibm.com dlezcano at fr.ibm.com
Sun Dec 10 13:58:19 PST 2006


Signed-off-by: Daniel Lezcano <dlezcano at fr.ibm.com>

--- 

 net/ipv4/fib_hash.c |    7 +------
 1 files changed, 1 insertion(+), 6 deletions(-)

Index: 2.6.19-rc6-mm2/net/ipv4/fib_hash.c
===================================================================
--- 2.6.19-rc6-mm2.orig/net/ipv4/fib_hash.c
+++ 2.6.19-rc6-mm2/net/ipv4/fib_hash.c
@@ -621,11 +621,6 @@ static int fn_flush_list(struct fn_zone 
 	struct hlist_node *node, *n;
 	struct fib_node *f;
 	int found = 0;
-#ifndef CONFIG_NET_NS
-	const int destroy = 0;
-#else
-	const int destroy = current_net_ns->destroying;
-#endif
 
 	hlist_for_each_entry_safe(f, node, n, head, fn_hash) {
 		struct fib_alias *fa, *fa_node;
@@ -637,7 +632,7 @@ static int fn_flush_list(struct fn_zone 
 
 			if (fi == NULL)
 				continue;
-			if (destroy || (fi->fib_flags&RTNH_F_DEAD)) {
+			if ((fi->fib_flags&RTNH_F_DEAD)) {
 				write_lock_bh(&fib_hash_lock);
 				list_del(&fa->fa_list);
 				if (list_empty(&f->fn_alias)) {

-- 
_______________________________________________
Containers mailing list
Containers at lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers




More information about the Devel mailing list