forked from luck/tmp_suning_uos_patched
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:
parent
524f9ffd6a
commit
e7ecc142e9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user