]> git.baikalelectronics.ru Git - kernel.git/commit
block: blk-crypto-fallback: remove redundant initialization of variable err
authorColin Ian King <colin.king@canonical.com>
Tue, 26 May 2020 22:49:02 +0000 (23:49 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 27 May 2020 11:41:59 +0000 (05:41 -0600)
commit8ebcb81c9b623960f371223fbfd96d2525625955
treee438be56816e0a6379806f5dab486b6bf170cd6c
parent32ee3f5bfdd40df5d3208cc901d601a2035fb8ef
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>
block/blk-crypto-fallback.c