diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-09-10 15:15:32 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-09-17 06:06:14 +0300 |
commit | 5e91f56a0bb32fd14096e20224bf4f93f1b174b1 (patch) | |
tree | eb4e50170f7820664b7daabddf3a9c0f0103d04e /crypto | |
parent | 29601c8159c8089782fb5da25acadd3c146f2944 (diff) | |
download | linux-5e91f56a0bb32fd14096e20224bf4f93f1b174b1.tar.xz |
crypto: img-hash - remove need for error return variable ret
The assignment to error return variable ret and then the jump to
an error exit path can be simplified by just returning the error
return at the failure point. This allows variable ret and the
error return path to be removed. This cleans up a static analysis
warninng that variable ret is being assigned (value never being
used) and being re-assigned later.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions