aboutsummaryrefslogtreecommitdiffstats
path: root/net/tls/tls_main.c
diff options
context:
space:
mode:
authorSabrina Dubroca <[email protected]>2023-10-09 20:50:51 +0000
committerDavid S. Miller <[email protected]>2023-10-13 10:26:10 +0000
commit4f4866991847738a216bb5920b3d3902cee13fd0 (patch)
treeae783d54754162563e981fcea5836fbe88222a09 /net/tls/tls_main.c
parenttls: remove tls_context argument from tls_set_sw_offload (diff)
downloadkernel-4f4866991847738a216bb5920b3d3902cee13fd0.tar.gz
kernel-4f4866991847738a216bb5920b3d3902cee13fd0.zip
tls: remove tls_context argument from tls_set_device_offload
It's not really needed since we end up refetching it as tls_ctx. We can also remove the NULL check, since we have already dereferenced ctx in do_tls_setsockopt_conf. While at it, fix up the reverse xmas tree ordering. Signed-off-by: Sabrina Dubroca <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tls/tls_main.c')
-rw-r--r--net/tls/tls_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tls/tls_main.c b/net/tls/tls_main.c
index 6c5e0cad89e8..a342853ab6ae 100644
--- a/net/tls/tls_main.c
+++ b/net/tls/tls_main.c
@@ -657,7 +657,7 @@ static int do_tls_setsockopt_conf(struct sock *sk, sockptr_t optval,
}
if (tx) {
- rc = tls_set_device_offload(sk, ctx);
+ rc = tls_set_device_offload(sk);
conf = TLS_HW;
if (!rc) {
TLS_INC_STATS(sock_net(sk), LINUX_MIB_TLSTXDEVICE);