ipv6: drop the judgement in rt6_alloc_cow()
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Tue, 5 Nov 2013 05:34:53 +0000 (13:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Nov 2013 03:17:05 +0000 (22:17 -0500)
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>

No differences found