From: Colin Ian King Date: Fri, 3 Sep 2021 13:24:58 +0000 (+0100) Subject: fs/ntfs3: Remove redundant initialization of variable err X-Git-Tag: v5.15-rc6~33^2~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0327c6d01a97a3242cf10717819994aa6e095a1d;p=thirdparty%2Flinux.git fs/ntfs3: Remove redundant initialization of variable err 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 Reviewed-by: Kari Argillander Signed-off-by: Konstantin Komarov --- diff --git a/fs/ntfs3/index.c b/fs/ntfs3/index.c index 0daca9adc54c7..b1175542d854c 100644 --- a/fs/ntfs3/index.c +++ b/fs/ntfs3/index.c @@ -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;