net ipv6: Remove rebundant rt6i_nsiblings initialization
Subsystems (3)
PATCH RESEND 1/1 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 <[email protected]>
Acked-by Nicolas Dichtel <[email protected]>
Cc Hideaki YOSHIFUJI <[email protected]>
Cc James Morris <[email protected]>
--- net/ipv6/route.c | 1 - 1 file changed, 1 deletion(-)
net/ipv6/route.c +0 -1
@@ -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_ipv6 (net);INIT_LIST_HEAD (&rt->rt6i_siblings); - rt->rt6i_nsiblings =0 ; }return rt; }
Signature · 1 line
1.7.9.5
From: Fan Du <[email protected]>
Date: Mon, 22 Jul 2013 14:20:12 +0800
Quoted 6 lines
Seting
rt->rt6i_nsiblingsto zero is rebundant, because above memset zeroed the rest of rt excluding the first dst memember.Signed-off-by Fan Du <[email protected]>Acked-by Nicolas Dichtel <[email protected]>
Applied.