projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9959fd
)
net ipv6: Remove rebundant rt6i_nsiblings initialization
author
fan.du
<
[email protected]
>
Mon, 22 Jul 2013 06:20:12 +0000
(14:20 +0800)
committer
David S. Miller
<
[email protected]
>
Wed, 24 Jul 2013 21:24:56 +0000
(14:24 -0700)
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]
>
Acked-by: Hannes Frederic Sowa <
[email protected]
>
Cc: Hideaki YOSHIFUJI <
[email protected]
>
Cc: James Morris <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv6/route.c
patch
|
blob
|
history
diff --git
a/net/ipv6/route.c
b/net/ipv6/route.c
index a8c891aa24645e9a45d2f8e47712b0698a29b216..74ab1f74abcddcb056d9dbe847a1364ab7bceb04 100644
(file)
--- 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;
}