Skip to content

Commit e7ecc14

Browse files
Colin Ian Kingaxboe
authored andcommitted
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>
1 parent 524f9ff commit e7ecc14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎block/blk-crypto-fallback.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ static bool blk_crypto_fallback_inited;
529529
static int blk_crypto_fallback_init(void)
530530
{
531531
int i;
532-
int err = -ENOMEM;
532+
int err;
533533

534534
if (blk_crypto_fallback_inited)
535535
return 0;

0 commit comments

Comments
 (0)