]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: remove the unnecessary statement in find_match()
authorDuan Jiong <duanj.fnst@cn.fujitsu.com>
Wed, 30 Oct 2013 07:39:26 +0000 (15:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Oct 2013 21:06:51 +0000 (17:06 -0400)
commit8ea1657d34ba988a8eac9a26962b6006aec7d040
treefe2a96ea102f20bea2dfb679d61b8fcfbd3e90fb
parentad926339ade6c02c347092a5fe0decbd42476052
ipv6: remove the unnecessary statement in find_match()

After reading the function rt6_check_neigh(), we can
know that the RT6_NUD_FAIL_SOFT can be returned only
when the IS_ENABLE(CONFIG_IPV6_ROUTER_PREF) is false.
so in function find_match(), there is no need to execute
the statement !IS_ENABLED(CONFIG_IPV6_ROUTER_PREF).

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>
net/ipv6/route.c