ipv6: Remove redundant unlikely()
Subsystems (3)
PATCH 1/1 ipv6: Remove redundant unlikely()
IS_ERR_OR_NULL() already implies unlikely().
Signed-off-by Tobias Klauser <[email protected]>
--- net/ipv6/ip6_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/ipv6/ip6_output.c +1 -1
@@ -127,7 +127,7 @@ static int ip6_finish_output2(struct net *net, struct sock *sk, struct sk_buff * nexthop =rt6_nexthop (dst_rt6_info (dst), daddr); neigh =__ipv6_neigh_lookup_noref (dev, nexthop); -if (unlikely (IS_ERR_OR_NULL (neigh))) { +if (IS_ERR_OR_NULL (neigh)) {if (unlikely (!neigh)) neigh =__neigh_create (&nd_tbl, nexthop, dev, false);if (IS_ERR (neigh)) {
Signature · 1 line
2.43.0
Quoted 3 lines · Tobias Klauser
IS_ERR_OR_NULL()already impliesunlikely().Signed-off-by Tobias Klauser <[email protected]>
Looking at the implementation of IS_ERR_OR_NULL() I agree.
Reviewed-by Simon Horman <[email protected]>
...
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 6 lines · On Tue, 8 Oct 2024 10:54:54 +0200 you wrote:
IS_ERR_OR_NULL()already impliesunlikely().Signed-off-by Tobias Klauser <[email protected]>--- net/ipv6/ip6_output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [net-next] ipv6: Remove redundant unlikely()
https://git.kernel.org/netdev/net-next/c/3a1beabe1159
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html