Skip to content

Commit f7ac8fb

Browse files
ColinIanKingkuba-moo
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 5618603 commit f7ac8fb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

net/tls/tls_sw.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2147,7 +2147,6 @@ int tls_sw_recvmsg(struct sock *sk,
21472147
if (ret) {
21482148
if (err >= 0 || err == -EINPROGRESS)
21492149
err = ret;
2150-
decrypted = 0;
21512150
goto end;
21522151
}
21532152

0 commit comments

Comments
 (0)