Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp3163724pxb; Mon, 18 Apr 2022 17:46:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkuXrqrWeYl1sdovujyAp3xafPh3Cp/SSlrZhzsl6WA08/et2FUsL5qRtO2nkhHAGxXRGD X-Received: by 2002:a63:4042:0:b0:3a8:c700:1f40 with SMTP id n63-20020a634042000000b003a8c7001f40mr9533531pga.318.1650329201639; Mon, 18 Apr 2022 17:46:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650329201; cv=none; d=google.com; s=arc-20160816; b=CMCUFNJiWXnTL+fTMyKT0k77fl1fj8Ntfgx4JtUm60ijBMFigjWMIEPXFxVPBObHaR w5s+ya6Cii3+BkOLj1o1TJNEKP2c01SNx7GgC5L2C449dNhJ8+TPrm3FbevPgBVE6/ia xtv0YT1i564w0IwnS3NNtLe+Q7izV2wGybOmkcfUWI8nUJiWmGCQLxiy0xRJe8kpbyXs NjO0+4Yku7XSwUCVyEYfb6X7KVPaZSrbmCL+EaAKVt7NhzezBPpnlWotiRy7ubzEsMFi gIwwigygouh/QKOmHh9qNj9unTvKCGTd1YYNg0ryh81wy2e3D8I7qI74d0eNbg7/2pRa AJCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=B6x/x31zD6jdr7v3jc1uXumCewA6SO4UbVpg60xKCXk=; b=00ZgaQaTQYwhukmCmBuhztG+Kz/c/Pu8KjGrT1tO338a1n4NSXvKOnOub3rdNyzzDC YgxdCO/+ESnk0oUSW4keUlVfsS60rvYdpp9BPxQYPW8W+qgonyFxH4TKSkAbHerzRAv5 GMIFQEiFwyMwEFvxt3LjjgM+1bQRnF65LWAHidcVfAbTPeVkKiJ44vv58Ni8FJ88Hx9B 4xOiteKRIZPo07h/5tJwsIQNfUzBBB+zyl6QRh13pRYx8tzXcG41PZQyhYPHIzfJFbUf ssmt1h4x677rBfasMcnA3o5XgVCQygOxpBagIduiwLDOreDOc7yZ6J5JJcZJx35O51Fr 27yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MzV3Dc04; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r14-20020a638f4e000000b0039d54724715si10475772pgn.110.2022.04.18.17.46.25; Mon, 18 Apr 2022 17:46:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=MzV3Dc04; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239078AbiDRPJN (ORCPT + 99 others); Mon, 18 Apr 2022 11:09:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244069AbiDRPI4 (ORCPT ); Mon, 18 Apr 2022 11:08:56 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA46B8FE62; Mon, 18 Apr 2022 07:00:40 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id n126-20020a1c2784000000b0038e8af3e788so8850632wmn.1; Mon, 18 Apr 2022 07:00:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=B6x/x31zD6jdr7v3jc1uXumCewA6SO4UbVpg60xKCXk=; b=MzV3Dc04CvwAAiwc8eYESy/kUaiawkJiTKLqHR78r064hc0eGHjL0wY8jaNT6CT5u7 aCZsjaiV/ws6ZL/JvWYudvnvWAvGUfJJlxJ4Hb48PqzawA817UQTH3dsQKlPAWtkvFsj Ih67M4YTAfVmXn4I2pee+/ksFZ5deFcTkONGa04NQt+PZ/j0UhBcY0BM34E8tJ5kzEdS D4yCc3nSVc87XqniZVIvrb7MPFYr4rB/N5hydMUpF1gcWlilGGpa/plQeImgOjuVeQTw EsICi6rN5bmvq/V+Z/aYb4kN6Pm808V2chgU+Zd/+k5ll2oQfbiAFEJv9J+FM8QdH+b3 yqXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=B6x/x31zD6jdr7v3jc1uXumCewA6SO4UbVpg60xKCXk=; b=AsEKwQBOMXBTscgTf4dqiOhvhAVxGHuVKBzwmbhtcH8LTtgAyOc1+j1x7yD1DT9d0n UT6BheX5yytyDbZEEO3NrxptY7zKCRwa4Ub62aciKbyIE7lOQasMfPHFT49lz6SPsIES WKwlQ2iqy5D7aDXvCLf1HpGi/GyA6Y8ZCJn0zlb7d41OX79c1f84HWmyoPqPGimX7whb uF0Nz/z2egHX0Hl01r2cJRMjMFXS7NZjKTYP9yvHdXDnNqhxEr77uzAjk8+nkKPCxCJy NeUVYHh5AQu9DU1QWtBJ5yyXFmq3xGRar+Fq6iMcwXm7F9+7G+B3NqGR4kzzjNofG2vS ZUaQ== X-Gm-Message-State: AOAM530J7svxk9O6cjwZL/Y7cQBhhbyXqEaP01LinIcOwG7fmutxnhxp DuQ9JN3c7awxSkPZzExrPzI= X-Received: by 2002:a05:600c:34c5:b0:38f:fbcb:e45 with SMTP id d5-20020a05600c34c500b0038ffbcb0e45mr15309073wmq.66.1650290439536; Mon, 18 Apr 2022 07:00:39 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id p14-20020a05600c1d8e00b0038ecb2d2feasm12977678wms.4.2022.04.18.07.00.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Apr 2022 07:00:39 -0700 (PDT) From: Colin Ian King To: Konstantin Komarov , ntfs3@lists.linux.dev Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH] fs/ntfs3: remove redundant assignment to variable vcn Date: Mon, 18 Apr 2022 15:00:38 +0100 Message-Id: <20220418140038.82843-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- fs/ntfs3/attrib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.35.1