]> www.infradead.org Git - users/hch/configfs.git/commitdiff
tls: remove redundant assignment to variable decrypted
authorColin Ian King <colin.i.king@gmail.com>
Wed, 10 Apr 2024 14:41:36 +0000 (15:41 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 12 Apr 2024 03:00:22 +0000 (20:00 -0700)
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>
net/tls/tls_sw.c

index b783231668c6512015070bfb090ef89ce5ca6458..305a412785f50b24c3d42b3d6beba2176ebbb834 100644 (file)
@@ -2147,7 +2147,6 @@ recv_end:
                if (ret) {
                        if (err >= 0 || err == -EINPROGRESS)
                                err = ret;
-                       decrypted = 0;
                        goto end;
                }