From: Colin Ian King Date: Wed, 10 Apr 2024 14:41:36 +0000 (+0100) Subject: tls: remove redundant assignment to variable decrypted X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f7ac8fbd3215e72824c08b53cd2ff272d42eb823;p=linux.git 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 Link: https://lore.kernel.org/r/20240410144136.289030-1-colin.i.king@gmail.com Signed-off-by: Jakub Kicinski --- diff --git a/net/tls/tls_sw.c b/net/tls/tls_sw.c index b783231668c65..305a412785f50 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; }