Skip to content

Commit 3a1beab

Browse files
tklauserkuba-moo
authored andcommitted
ipv6: Remove redundant unlikely()
IS_ERR_OR_NULL() already implies unlikely(). Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20241008085454.8087-1-tklauser@distanz.ch Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 4daf4dc commit 3a1beab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv6/ip6_output.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static int ip6_finish_output2(struct net *net, struct sock *sk, struct sk_buff *
127127
nexthop = rt6_nexthop(dst_rt6_info(dst), daddr);
128128
neigh = __ipv6_neigh_lookup_noref(dev, nexthop);
129129

130-
if (unlikely(IS_ERR_OR_NULL(neigh))) {
130+
if (IS_ERR_OR_NULL(neigh)) {
131131
if (unlikely(!neigh))
132132
neigh = __neigh_create(&nd_tbl, nexthop, dev, false);
133133
if (IS_ERR(neigh)) {

0 commit comments

Comments
 (0)