fs/ntfs3: Remove redundant initialization of variable err
authorColin Ian King <colin.king@canonical.com>
Fri, 3 Sep 2021 13:24:58 +0000 (14:24 +0100)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Mon, 13 Sep 2021 16:41:27 +0000 (19:41 +0300)
The variable err is being initialized with a value that is never read, it
is being updated later on. The assignment is redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/index.c

index 0daca9adc54c79084743efc2487b49a0ac0d3227..b1175542d854c44550858ce7620df68b99ee7b86 100644 (file)
@@ -1401,7 +1401,7 @@ ok:
 static int indx_create_allocate(struct ntfs_index *indx, struct ntfs_inode *ni,
                                CLST *vbn)
 {
-       int err = -ENOMEM;
+       int err;
        struct ntfs_sb_info *sbi = ni->mi.sbi;
        struct ATTRIB *bitmap;
        struct ATTRIB *alloc;