From 86a37def2bba8d22f8b512e7c8a0f6f6e197728c Mon Sep 17 00:00:00 2001 From: "fan.du" Date: Mon, 22 Jul 2013 14:20:12 +0800 Subject: net ipv6: Remove rebundant rt6i_nsiblings initialization Seting rt->rt6i_nsiblings to zero is rebundant, because above memset zeroed the rest of rt excluding the first dst memember. Signed-off-by: Fan Du Acked-by: Nicolas Dichtel Acked-by: Hannes Frederic Sowa Cc: Hideaki YOSHIFUJI Cc: James Morris Signed-off-by: David S. Miller --- net/ipv6/route.c | 1 - 1 file changed, 1 deletion(-) (limited to 'net/ipv6/route.c') diff --git a/net/ipv6/route.c b/net/ipv6/route.c index a8c891aa246..74ab1f74abc 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -285,7 +285,6 @@ static inline struct rt6_info *ip6_dst_alloc(struct net *net, rt6_init_peer(rt, table ? &table->tb6_peers : net->ipv6.peers); rt->rt6i_genid = rt_genid(net); INIT_LIST_HEAD(&rt->rt6i_siblings); - rt->rt6i_nsiblings = 0; } return rt; } -- cgit v1.2.3-70-g09d2