diff options
author | fan.du <fan.du@windriver.com> | 2013-07-22 06:20:12 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-24 21:24:56 (GMT) |
commit | 86a37def2bba8d22f8b512e7c8a0f6f6e197728c (patch) | |
tree | 216b3aded2758d5b7af6ee0356d931081d60ef19 | |
parent | b9959fd3b0fa8ee5f45012ae5258d87ee6852baa (diff) | |
download | linux-86a37def2bba8d22f8b512e7c8a0f6f6e197728c.tar.xz |
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 <fan.du@windriver.com>
Acked-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: James Morris <jmorris@namei.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/ipv6/route.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv6/route.c b/net/ipv6/route.c index a8c891a..74ab1f7 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; } |