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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;