Commit e7ecc142 authored by Colin Ian King's avatar Colin Ian King Committed by Jens Axboe

block: blk-crypto-fallback: remove redundant initialization of variable err

The variable err is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarEric Biggers <ebiggers@google.com>
Reviewed-by: default avatarSatya Tangirala <satyat@google.com>
Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 524f9ffd
......@@ -529,7 +529,7 @@ static bool blk_crypto_fallback_inited;
static int blk_crypto_fallback_init(void)
{
int i;
int err = -ENOMEM;
int err;
if (blk_crypto_fallback_inited)
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment