net: ipv6: drop unneeded likely() call around IS_ERR()

IS_ERR() already calls unlikely(), so this extra unlikely() call
around IS_ERR() is not needed.

Signed-off-by: Enrico Weigelt <info@metux.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Enrico Weigelt 2019-06-05 23:11:34 +02:00 committed by David S. Miller
parent 88e235b80c
commit 26f8113cc7
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ struct sock *inet6_lookup_listener(struct net *net,
saddr, sport, &in6addr_any, hnum,
dif, sdif);
done:
if (unlikely(IS_ERR(result)))
if (IS_ERR(result))
return NULL;
return result;
}

View File

@ -219,7 +219,7 @@ struct sock *__udp6_lib_lookup(struct net *net,
exact_dif, hslot2,
skb);
}
if (unlikely(IS_ERR(result)))
if (IS_ERR(result))
return NULL;
return result;
}