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>
 {
        u32 rt_cookie = 0;
 
-       if ((f6i && !fib6_get_cookie_safe(f6i, &rt_cookie)) ||
-            rt_cookie != cookie)
+       if (!fib6_get_cookie_safe(f6i, &rt_cookie) || rt_cookie != cookie)
                return false;
 
        if (fib6_check_expired(f6i))