]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
exfat: Drop dead assignment of num_clusters
authorPhilipp Hahn <phahn-oss@avm.de>
Tue, 3 Mar 2026 10:59:15 +0000 (11:59 +0100)
committerNamjae Jeon <linkinjeon@kernel.org>
Wed, 4 Mar 2026 10:22:41 +0000 (19:22 +0900)
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>
fs/exfat/inode.c

index 567308aff726a5fc13038802c6de0f047bcc3e5a..d5f6dbab472094d9dfc23f704a96fa345123b0b9 100644 (file)
@@ -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;