diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2024-04-11 09:49:13 +0100 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2024-05-09 22:30:50 +0300 |
commit | d14d2cc265d01960cc5af468b4e718f5c4585d97 (patch) | |
tree | e71866d3a3fdbc7ce12aa0d5deaa3bfa0369d7a7 /Documentation/security | |
parent | 6155153601183061cbc54516f4db843cb80f2e02 (diff) |
tpm/eventlog: remove redundant assignment to variabel ret
Variable ret is being assigned and error code that is never read, it is
either being re-assigned in an error exit path or never referenced again
on the non-error path. The assignment is redundant and can be removed.
Cleans up clang scan build warning:
drivers/char/tpm/eventlog/acpi.c:145:2: warning: Value stored to 'ret'
is never read [deadcode.DeadStores]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'Documentation/security')
0 files changed, 0 insertions, 0 deletions