Skip to content

Commit

Permalink
net/tls: mark sk->err being set as unlikely
Browse files Browse the repository at this point in the history
Tell GCC sk->err is not likely to be set.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Dirk van der Merwe <dirk.vandermerwe@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jakub Kicinski authored and David S. Miller committed Oct 7, 2019
1 parent 163ab96 commit 93277b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/tls/tls_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ static int tls_push_data(struct sock *sk,
~(MSG_MORE | MSG_DONTWAIT | MSG_NOSIGNAL | MSG_SENDPAGE_NOTLAST))
return -ENOTSUPP;

if (sk->sk_err)
if (unlikely(sk->sk_err))
return -sk->sk_err;

flags |= MSG_SENDPAGE_DECRYPTED;
Expand Down

0 comments on commit 93277b2

Please sign in to comment.