commit | 249a3630c48e5df8f8706d4cdf90bddf2b737c5d | [log] [tgz] |
---|---|---|
author | Duan Jiong <duanj.fnst@cn.fujitsu.com> | Tue Nov 05 13:34:53 2013 +0800 |
committer | David S. Miller <davem@davemloft.net> | Tue Nov 05 22:17:05 2013 -0500 |
tree | 8f7f96d635d84767f66b0c236f6ab25435ff4a0a | |
parent | 0e033e04c2678dbbe74a46b23fffb7bb918c288e [diff] |
ipv6: drop the judgement in rt6_alloc_cow() Now rt6_alloc_cow() is only called by ip6_pol_route() when rt->rt6i_flags doesn't contain both RTF_NONEXTHOP and RTF_GATEWAY, and rt->rt6i_flags hasn't been changed in ip6_rt_copy(). So there is no neccessary to judge whether rt->rt6i_flags contains RTF_GATEWAY or not. Signed-off-by: Duan Jiong <duanj.fnst@cn.fujitsu.com> Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>