summaryrefslogtreecommitdiffstats
path: root/fs/ntfs3/index.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-09-03 14:24:58 +0100
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>2021-09-13 19:41:27 +0300
commit0327c6d01a97a3242cf10717819994aa6e095a1d (patch)
treed93950db0554cff34a1f9e69c7fa0508101d824c /fs/ntfs3/index.c
parent15b2ae776044ac52cddda8a3e6c9fecd15226b8c (diff)
downloadlinux-0327c6d01a97a3242cf10717819994aa6e095a1d.tar.bz2
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 <colin.king@canonical.com> Reviewed-by: Kari Argillander <kari.argillander@gmail.com> Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3/index.c')
-rw-r--r--fs/ntfs3/index.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/index.c b/fs/ntfs3/index.c
index 0daca9adc54c..b1175542d854 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;