From: Philipp Hahn Date: Tue, 3 Mar 2026 10:59:15 +0000 (+0100) Subject: exfat: Drop dead assignment of num_clusters X-Git-Tag: v7.1-rc1~227^2~16 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=81440a740d385a992b0652fbd4a5c71edd6f27d2;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Namjae Jeon --- diff --git a/fs/exfat/inode.c b/fs/exfat/inode.c index 567308aff726a..d5f6dbab47209 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;