Blame SOURCES/0043-fs-ntfs3-Remove-redundant-initialization-of-variable.patch

Kmods SIG 63c143
From 0327c6d01a97a3242cf10717819994aa6e095a1d Mon Sep 17 00:00:00 2001
Kmods SIG 63c143
From: Colin Ian King <colin.king@canonical.com>
Kmods SIG 63c143
Date: Fri, 3 Sep 2021 14:24:58 +0100
Kmods SIG 63c143
Subject: [Backport 0327c6d01a97] src: Remove redundant initialization of
Kmods SIG 63c143
 variable err
Kmods SIG 63c143
Kmods SIG 63c143
The variable err is being initialized with a value that is never read, it
Kmods SIG 63c143
is being updated later on. The assignment is redundant and can be removed.
Kmods SIG 63c143
Kmods SIG 63c143
Addresses-Coverity: ("Unused value")
Kmods SIG 63c143
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Kmods SIG 63c143
Reviewed-by: Kari Argillander <kari.argillander@gmail.com>
Kmods SIG 63c143
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Kmods SIG 63c143
---
Kmods SIG 63c143
 src/index.c | 2 +-
Kmods SIG 63c143
 1 file changed, 1 insertion(+), 1 deletion(-)
Kmods SIG 63c143
Kmods SIG 63c143
diff --git a/src/index.c b/src/index.c
Kmods SIG 63c143
index 0daca9adc54c79084743efc2487b49a0ac0d3227..b1175542d854c44550858ce7620df68b99ee7b86 100644
Kmods SIG 63c143
--- a/src/index.c
Kmods SIG 63c143
+++ b/src/index.c
Kmods SIG 63c143
@@ -1401,7 +1401,7 @@ int indx_find_raw(struct ntfs_index *indx, struct ntfs_inode *ni,
Kmods SIG 63c143
 static int indx_create_allocate(struct ntfs_index *indx, struct ntfs_inode *ni,
Kmods SIG 63c143
 				CLST *vbn)
Kmods SIG 63c143
 {
Kmods SIG 63c143
-	int err = -ENOMEM;
Kmods SIG 63c143
+	int err;
Kmods SIG 63c143
 	struct ntfs_sb_info *sbi = ni->mi.sbi;
Kmods SIG 63c143
 	struct ATTRIB *bitmap;
Kmods SIG 63c143
 	struct ATTRIB *alloc;
Kmods SIG 63c143
-- 
Kmods SIG 63c143
2.31.1
Kmods SIG 63c143