summaryrefslogtreecommitdiffstats
path: root/block/blk-crypto-fallback.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-05-27 00:49:02 +0200
committerJens Axboe <axboe@kernel.dk>2020-05-27 13:41:59 +0200
commite7ecc142e9f33f5a8808b13fb0afa14f36aeeca3 (patch)
treee438be56816e0a6379806f5dab486b6bf170cd6c /block/blk-crypto-fallback.c
parentblock: reduce part_stat_lock() scope (diff)
downloadlinux-e7ecc142e9f33f5a8808b13fb0afa14f36aeeca3.tar.xz
linux-e7ecc142e9f33f5a8808b13fb0afa14f36aeeca3.zip
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>
Diffstat (limited to 'block/blk-crypto-fallback.c')
-rw-r--r--block/blk-crypto-fallback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-crypto-fallback.c b/block/blk-crypto-fallback.c
index 74ab137ae3ba..6e49688a2d80 100644
--- a/block/blk-crypto-fallback.c
+++ b/block/blk-crypto-fallback.c
@@ -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;