From e7ecc142e9f33f5a8808b13fb0afa14f36aeeca3 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Tue, 26 May 2020 23:49:02 +0100 Subject: 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 Reviewed-by: Eric Biggers Reviewed-by: Satya Tangirala Addresses-Coverity: ("Unused value") Signed-off-by: Jens Axboe --- block/blk-crypto-fallback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'block') 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; -- cgit v1.2.3-59-g8ed1b