diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-06 21:09:28 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-07 09:58:27 -0400 |
commit | 93277b258f47554f3057db49b191ea5096ce8dbd (patch) | |
tree | 640567380d9cf876bd2049311119aa6a1cf6289f /net/tls/tls_device.c | |
parent | 163ab96b52ae2bb2d8f188cd29f0b570610f9007 (diff) | |
download | lwn-93277b258f47554f3057db49b191ea5096ce8dbd.tar.gz lwn-93277b258f47554f3057db49b191ea5096ce8dbd.zip |
net/tls: mark sk->err being set as unlikely
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>
Diffstat (limited to 'net/tls/tls_device.c')
-rw-r--r-- | net/tls/tls_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tls/tls_device.c b/net/tls/tls_device.c index f306e4c7bf15..fcf38edc07d6 100644 --- 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; |