]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv6/route.c
[NETNS]: Don't initialize err variable twice.
[net-next-2.6.git] / net / ipv6 / route.c
index 1f42bc960bd52d244f6ad7233ff90bc4fb85e667..a493ad9b891475bdd7cd0c11b18688d8fe306f31 100644 (file)
@@ -2614,9 +2614,8 @@ struct ctl_table *ipv6_route_sysctl_init(struct net *net)
 
 static int ip6_route_net_init(struct net *net)
 {
-       int ret = 0;
+       int ret = -ENOMEM;
 
-       ret = -ENOMEM;
        net->ipv6.ip6_dst_ops = kmemdup(&ip6_dst_ops_template,
                                        sizeof(*net->ipv6.ip6_dst_ops),
                                        GFP_KERNEL);