projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
163ab96
)
net/tls: mark sk->err being set as unlikely
author
Jakub Kicinski
<jakub.kicinski@netronome.com>
Mon, 7 Oct 2019 04:09:28 +0000
(21:09 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 7 Oct 2019 13:58:27 +0000
(09:58 -0400)
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>
net/tls/tls_device.c
patch
|
blob
|
history
diff --git
a/net/tls/tls_device.c
b/net/tls/tls_device.c
index
f306e4c
..
fcf38ed
100644
(file)
--- a/
net/tls/tls_device.c
+++ b/
net/tls/tls_device.c
@@
-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;