Skip to content

Commit

Permalink
block: blk-crypto-fallback: remove redundant initialization of variab…
Browse files Browse the repository at this point in the history
…le 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 <[email protected]>
Reviewed-by: Eric Biggers <[email protected]>
Reviewed-by: Satya Tangirala <[email protected]>
Addresses-Coverity: ("Unused value")
Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Colin Ian King authored and axboe committed May 27, 2020
1 parent 524f9ff commit e7ecc14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/blk-crypto-fallback.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e7ecc14

Please sign in to comment.