mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-01 09:13:37 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue