From nobody Thu Apr 9 16:35:01 2026 Received: from mail.avm.de (mail.avm.de [212.42.244.94]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B1D373C3C02; Tue, 3 Mar 2026 11:05:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.42.244.94 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772535921; cv=none; b=gwYb0REnt2qS3jlCY1MNppULxYBi7S1iym8S3oHWVicK5xxhHTtNL5MsBdFYIGY9YzfClnRqDS2ZH3zqVYdDa/3G8VVjD37pXz+6ymrDucHp/VXUhQocGj36xWrvqkLiK5vtf8TApjm+3e3vYkZwjTkOd1c3AGhq5f0n8QmBsVo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772535921; c=relaxed/simple; bh=5SXMiqNXjstBsPZB4qRMHa8k5bfBUk0bxZ+NJlNJHjQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GZpoQ5QAWaMWNRyogflzApCe/Bw4B/RwNoZp7gNeIGY7E9ucbiYBBGvFt+AMXCzffQi83GU0DvQv4BxYWkoH0HncqHookp2WTox83H68nLIrU13w6O1GhwkwHBgZswB4rbF6uLRPTEWsbiWWD6CIynNSVdTgUT8nl+hHASYic28= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=avm.de; spf=pass smtp.mailfrom=avm.de; arc=none smtp.client-ip=212.42.244.94 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=avm.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=avm.de Received: from [212.42.244.71] (helo=mail.avm.de) by mail.avm.de with ESMTP (eXpurgate 4.55.2) (envelope-from ) id 69a6bf0e-c2c6-7f0000032729-7f0000019cba-1 for ; Tue, 03 Mar 2026 11:59:26 +0100 Received: from mail-auth.avm.de (dovecot-mx-01.avm.de [212.42.244.71]) by mail.avm.de (Postfix) with ESMTPS; Tue, 3 Mar 2026 11:59:26 +0100 (CET) From: Philipp Hahn To: Namjae Jeon , Sungjong Seo , Yuezhang Mo Cc: Philipp Hahn , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] exfat: Drop dead assignment of num_clusters Date: Tue, 3 Mar 2026 11:59:15 +0100 Message-ID: <36b3573bb3e4277ad448852479f2cfea7a8ba902.1772534707.git.p.hahn@avm.de> In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Organization: FRITZ! Technology GmbH, Berlin, Germany Content-Transfer-Encoding: quoted-printable X-purgate-ID: 149429::1772535566-04D8BF88-94FC74DF/0/0 X-purgate-type: clean X-purgate-size: 648 X-purgate-Ad: Categorized by eleven eXpurgate (R) https://www.eleven.de X-purgate: This mail is considered clean (visit https://www.eleven.de for further information) X-purgate: clean Content-Type: text/plain; charset="utf-8" num_clusters is not used naywhere afterwards. Remove assignment. Found by static code analysis using Klocwork. Signed-off-by: Philipp Hahn --- fs/exfat/inode.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/exfat/inode.c b/fs/exfat/inode.c index 2fb2d2d5d503a..d17ef2f9a7e2b 100644 --- a/fs/exfat/inode.c +++ b/fs/exfat/inode.c @@ -213,7 +213,6 @@ static int exfat_map_cluster(struct inode *inode, unsig= ned int clu_offset, return -EIO; } =20 - num_clusters +=3D num_to_be_allocated; *clu =3D new_clu.dir; =20 inode->i_blocks +=3D EXFAT_CLU_TO_B(num_to_be_allocated, sbi) >> 9; --=20 2.43.0