netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH][NETNS]: Don't initialize err variable twice.
@ 2008-04-21 13:07 Pavel Emelyanov
  2008-04-21 21:26 ` David Miller
  2008-04-23 16:14 ` YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 2 replies; 3+ messages in thread
From: Pavel Emelyanov @ 2008-04-21 13:07 UTC (permalink / raw)
  To: David Miller, Linux Netdev List

The ip6_route_net_init() performs some unneeded actions.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

---

diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index 210a079..7f82e80 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -2614,7 +2614,7 @@ struct ctl_table *ipv6_route_sysctl_init(struct net *net)
 
 static int ip6_route_net_init(struct net *net)
 {
-	int ret = 0;
+	int ret;
 
 	ret = -ENOMEM;
 	net->ipv6.ip6_dst_ops = kmemdup(&ip6_dst_ops_template,

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-23 16:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-21 13:07 [PATCH][NETNS]: Don't initialize err variable twice Pavel Emelyanov
2008-04-21 21:26 ` David Miller
2008-04-23 16:14 ` YOSHIFUJI Hideaki / 吉藤英明

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).