summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorPhilipp Hahn <phahn-oss@avm.de>2026-03-03 11:59:15 +0100
committerNamjae Jeon <linkinjeon@kernel.org>2026-03-04 19:22:41 +0900
commit81440a740d385a992b0652fbd4a5c71edd6f27d2 (patch)
tree99b004fb0b55ec89638dd656b05ceb9c51ad7a2f /fs
parent4637b4cdd7aebfa2e38fa39f4db91fa089b809c5 (diff)
exfat: Drop dead assignment of num_clusters
num_clusters is not used anywhere afterwards. Remove assignment. Found by static code analysis using Klocwork. Signed-off-by: Philipp Hahn <phahn-oss@avm.de> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'fs')
-rw-r--r--fs/exfat/inode.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/exfat/inode.c b/fs/exfat/inode.c
index 567308aff726..d5f6dbab4720 100644
--- a/fs/exfat/inode.c
+++ b/fs/exfat/inode.c
@@ -213,7 +213,6 @@ static int exfat_map_cluster(struct inode *inode, unsigned int clu_offset,
return -EIO;
}
- num_clusters += num_to_be_allocated;
*clu = new_clu.dir;
inode->i_blocks += EXFAT_CLU_TO_B(num_to_be_allocated, sbi) >> 9;