Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Tobias Klauser and committed by
Jakub Kicinski
3a1beabe 4daf4dc2

+1 -1
+1 -1
net/ipv6/ip6_output.c
··· 127 127 nexthop = rt6_nexthop(dst_rt6_info(dst), daddr); 128 128 neigh = __ipv6_neigh_lookup_noref(dev, nexthop); 129 129 130 - if (unlikely(IS_ERR_OR_NULL(neigh))) { 130 + if (IS_ERR_OR_NULL(neigh)) { 131 131 if (unlikely(!neigh)) 132 132 neigh = __neigh_create(&nd_tbl, nexthop, dev, false); 133 133 if (IS_ERR(neigh)) {