Skip to content

Commit

Permalink
net: ipv6: drop unneeded likely() call around IS_ERR()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Enrico Weigelt authored and David S. Miller committed Jun 5, 2019
1 parent 88e235b commit 26f8113
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/ipv6/inet6_hashtables.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion net/ipv6/udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 26f8113

Please sign in to comment.