aboutsummaryrefslogtreecommitdiff
path: root/net/tls
diff options
context:
space:
mode:
authorGravatar Colin Ian King <colin.i.king@gmail.com> 2024-04-10 15:41:36 +0100
committerGravatar Jakub Kicinski <kuba@kernel.org> 2024-04-11 20:00:22 -0700
commitf7ac8fbd3215e72824c08b53cd2ff272d42eb823 (patch)
treec20a4d1d70d1a09511d9ca67233625b8f75f03e2 /net/tls
parentipv4: Remove RTO_ONLINK. (diff)
downloadlinux-f7ac8fbd3215e72824c08b53cd2ff272d42eb823.tar.gz
linux-f7ac8fbd3215e72824c08b53cd2ff272d42eb823.tar.bz2
linux-f7ac8fbd3215e72824c08b53cd2ff272d42eb823.zip
tls: remove redundant assignment to variable decrypted
The variable decrypted is being assigned a value that is never read, the control of flow after the assignment is via an return path and decrypted is not referenced in this path. The assignment is redundant and can be removed. Cleans up clang scan warning: net/tls/tls_sw.c:2150:4: warning: Value stored to 'decrypted' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20240410144136.289030-1-colin.i.king@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/tls')
-rw-r--r--net/tls/tls_sw.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c
index b783231668c6..305a412785f5 100644
--- a/net/tls/tls_sw.c
+++ b/net/tls/tls_sw.c
@@ -2147,7 +2147,6 @@ recv_end:
if (ret) {
if (err >= 0 || err == -EINPROGRESS)
err = ret;
- decrypted = 0;
goto end;
}