diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2019-10-07 06:09:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-07 15:58:27 +0200 |
commit | 93277b258f47554f3057db49b191ea5096ce8dbd (patch) | |
tree | 640567380d9cf876bd2049311119aa6a1cf6289f /net/tls/tls_device.c | |
parent | net: sockmap: use bitmap for copy info (diff) | |
download | linux-93277b258f47554f3057db49b191ea5096ce8dbd.tar.xz linux-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; |