diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-04-18 17:00:00 +0300 |
---|---|---|
committer | Konstantin Komarov <almaz.alexandrovich@paragon-software.com> | 2022-06-08 18:40:32 +0300 |
commit | dc8965ab5e338abfd8dfd65d12a62ad5be65a776 (patch) | |
tree | 67fb398bd116784a489134cd2c0506e7e71cfc72 /fs/ntfs3 | |
parent | 560e613352b4a65c5c397e689a997fb04bd5f928 (diff) | |
download | linux-dc8965ab5e338abfd8dfd65d12a62ad5be65a776.tar.gz linux-dc8965ab5e338abfd8dfd65d12a62ad5be65a776.tar.bz2 linux-dc8965ab5e338abfd8dfd65d12a62ad5be65a776.zip |
fs/ntfs3: Remove redundant assignment to variable vcn
Variable vcn is being assigned a value that is never read, it is
being re-assigned again in the initialization of a for-loop. The
assignment is redundant and can be removed.
Cleans up clang scan build warning:
fs/ntfs3/attrib.c:1176:7: warning: Value stored to 'vcn' during its
initialization is never read [deadcode.DeadStores]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: Kari Argillander <kari.argillander@gmail.com>
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Diffstat (limited to 'fs/ntfs3')
-rw-r--r-- | fs/ntfs3/attrib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs3/attrib.c b/fs/ntfs3/attrib.c index e8c00dda42ad..fc0623b029e6 100644 --- a/fs/ntfs3/attrib.c +++ b/fs/ntfs3/attrib.c @@ -1173,7 +1173,7 @@ int attr_load_runs_range(struct ntfs_inode *ni, enum ATTR_TYPE type, { struct ntfs_sb_info *sbi = ni->mi.sbi; u8 cluster_bits = sbi->cluster_bits; - CLST vcn = from >> cluster_bits; + CLST vcn; CLST vcn_last = (to - 1) >> cluster_bits; CLST lcn, clen; int err; |