Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2638515iof; Wed, 8 Jun 2022 09:00:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwfpKLj/0gGaIQJtLi+tN31RPqa1rbVaLqvp4myaCeLzqpns403MKuGzUlA5fP/DLqS7v/j X-Received: by 2002:a17:902:f54e:b0:166:3b30:457c with SMTP id h14-20020a170902f54e00b001663b30457cmr34846386plf.1.1654704048327; Wed, 08 Jun 2022 09:00:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654704048; cv=none; d=google.com; s=arc-20160816; b=AMCnrMY4nd9p46gcEreEFqCLhMay0ld2NL1O3gFb2Ypb9Dst73YUSWnl013XBGRmXt QbMXDiupKFGhfFuojuBA1Kw2qFcaFbL/J9pQ5fK/YNkece5dWvnsVGN5ZuWWBazLailG JA3+FzUSfn0K5JBqjfbN5JJxHkXqDgX17Z9vHw/m5NnT+eq0GvjC9AVZznovXiHJcsm4 U0nz4oYmcvbUskRLRBvfU5LSEleMJeojDMQtTb8MVAN8RR7VticUuF+RlMp7UACVAo0/ iUajU0ewDH/zKrbld7qdbckjXbaLxm3vcEl2k5NMidby5KIJsaM5n6DnSh+JTkLCOwsu f7sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ZIn5ncpNxC8T/c1MmFgaJnj+dvlJ1abmWAeW+JUsdto=; b=hRktiucJqTRhRxmF9/iaNfO2YMz6sc3l4qtctFkS3mNtlMqFjTf/poypZ9tRVR5o0s mp5ZLpK00HUnSh27ov+5BQT2H4F34by6LqhWfGd7HRTZtKbkKMs8varTfb9qZGaNDKgl 6nUbakCZh3IwF0iqgSrwhtZ//EA110gdFNGOxGL3Aef28FaeccAE64hn6bLHEB0lD9qj XzRN2M6S1HPTYvedcHWYLo7XmeAZIHeyVmYIxvyagR/v5kVyXoh3FpuqrUyqIb4If48z BECSO/rDH505Ozf6vE3QYcbsBh3GWp0GhEr+tOgbX0JVaeDdZSA85goMk2U1O7MKTFHX hk3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=LR5mbVmS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q5-20020a056a00150500b0051c6134de36si4012931pfu.75.2022.06.08.09.00.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 09:00:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=LR5mbVmS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 46F643F8B3; Wed, 8 Jun 2022 08:32:35 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244387AbiFHPbA (ORCPT + 99 others); Wed, 8 Jun 2022 11:31:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344151AbiFHP3p (ORCPT ); Wed, 8 Jun 2022 11:29:45 -0400 Received: from relayaws-01.paragon-software.com (relayaws-01.paragon-software.com [35.157.23.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3197BDDD; Wed, 8 Jun 2022 08:28:52 -0700 (PDT) Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relayaws-01.paragon-software.com (Postfix) with ESMTPS id 5B3571D78; Wed, 8 Jun 2022 15:28:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1654702092; bh=ZIn5ncpNxC8T/c1MmFgaJnj+dvlJ1abmWAeW+JUsdto=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=LR5mbVmS7J/+r4oKJTo8vi0yNSt3z7ohVTUkK53WvHvhgMWK6Pyg9x242XSGZqjw4 XnsuqNMogYV39PIzaZbyckB10YgqySZwAZ0fHIJklBU9CW+qzLCxiL5rfl54uIbcAC 4Qj5/0mVa1X2T/KvR22/1XSg75E19KieKc/3jX5E= Received: from [172.30.8.65] (172.30.8.65) by vdlg-exch-02.paragon-software.com (172.30.1.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 8 Jun 2022 18:28:49 +0300 Message-ID: Date: Wed, 8 Jun 2022 18:28:49 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH] fs/ntfs3: remove redundant assignment to variable vcn Content-Language: en-US To: Colin Ian King , CC: , , References: <20220418140038.82843-1-colin.i.king@gmail.com> From: Konstantin Komarov In-Reply-To: <20220418140038.82843-1-colin.i.king@gmail.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [172.30.8.65] X-ClientProxiedBy: vdlg-exch-02.paragon-software.com (172.30.1.105) To vdlg-exch-02.paragon-software.com (172.30.1.105) X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 4/18/22 17:00, Colin Ian King wrote: > 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; Thanks for patch, applied!