]> git.karo-electronics.de Git - linux-beck.git/commitdiff
netfilter: ipvs: fix compiler warnings
authorChangli Gao <xiaosuo@gmail.com>
Tue, 25 Jan 2011 04:40:18 +0000 (12:40 +0800)
committerSimon Horman <horms@verge.net.au>
Tue, 25 Jan 2011 13:17:51 +0000 (23:17 +1000)
Fix compiler warnings when IP_VS_DBG() isn't defined.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Acked-by: Hans Schillstrom <hans.schillstrom@ericsson.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
net/netfilter/ipvs/ip_vs_core.c

index f36a84f33efb8b6a33f41c9480d8b03d3830c414..d889f4f6be994357097bc30e7b78874858b33966 100644 (file)
@@ -1894,9 +1894,7 @@ static int __net_init __ip_vs_init(struct net *net)
 
 static void __net_exit __ip_vs_cleanup(struct net *net)
 {
-       struct netns_ipvs *ipvs = net_ipvs(net);
-
-       IP_VS_DBG(10, "ipvs netns %d released\n", ipvs->gen);
+       IP_VS_DBG(10, "ipvs netns %d released\n", net_ipvs(net)->gen);
 }
 
 static struct pernet_operations ipvs_core_ops = {