]> git.baikalelectronics.ru Git - kernel.git/commit
net/ipv6: Remove unncessary check on f6i in fib6_check
authorDavid Ahern <dsahern@gmail.com>
Fri, 20 Apr 2018 22:38:03 +0000 (15:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Apr 2018 20:06:14 +0000 (16:06 -0400)
commit38551c497c6b525cc22457df20941952a2b214f2
tree482fdfb31458861648701b908a46450d455fc470
parent17ca15645c70e48855e5a61b99c0bfc7d544aa8a
net/ipv6: Remove unncessary check on f6i in fib6_check

Dan reported an imbalance in fib6_check on use of f6i and checking
whether it is null. Since fib6_check is only called if f6i is non-null,
remove the unnecessary check.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/route.c