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: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Satya Tangirala <satyat@google.com>
Addresses-Coverity: ("Unused value")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Colin Ian King 2020-05-26 23:49:02 +01:00 committed by Jens Axboe
parent 524f9ffd6a
commit e7ecc142e9
1 changed files with 1 additions and 1 deletions

View File

@ -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;