Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp851887pxb; Fri, 22 Apr 2022 12:36:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCfZXnLK7X9oRCj5R9yzUIjYp5Ym5uezT7qMHc/N6b8r9EbTh11jeqAl7ATfidlXRvJUqi X-Received: by 2002:a17:90b:3ecc:b0:1d2:c238:d92e with SMTP id rm12-20020a17090b3ecc00b001d2c238d92emr7178505pjb.79.1650656186472; Fri, 22 Apr 2022 12:36:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650656186; cv=none; d=google.com; s=arc-20160816; b=DXtU7gkZHsfRueRymzIFoofVg5xoua4cuo4zOmNov2h7U7Qh9f3yH5fZS23PIoosVX 9tqBaHqUQGhYeONKG2N3sXuZLis/IG201ccnXGwzdDUZutRbhQuabUpNEtYlkWJ6aML5 1ORIfxH/c627fL/WEpk56CXXZ7JbEbQaEL2A3wvbfkB+wEucCGeWzRxy0valDtfDfO7r AXOnqdBPOwPdBwMyYUXh1Pgll29dSTTnQqxCQOqKqR4GG0cjJxB/ooAG2pPbIJ+17kUR Eodj4GtvgqY3k9sLYobLnG8zMR3x7ur5tCworaNtIoLMKegD0ixQkNpDrNdOQxPCfEXI FWDw== 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=fDm0hCeP1iuF9WL7RiqDe/J3rtlxPQX1zeA/vezHRa0=; b=1DJZxXB1xLQ4zj+h/mwOSfY/Rk6wkOrbb+5twSgGIJOxq6bpavgTvgDcbuSp40Awvs qtvpCyPhd9nJZ6mInswfaAhL2h7L1pf1GenaXXP9NUp6TSrrICR5QZTZxXKjOcbWahgY 2PFih/oVT12pI915AmLnGpMZtH0nkaXznjO06yUc1p+qtpq18KON8xl6btKGGfCpzyLU o5wepuyRia1vNbHHMzJ7eNpKQfzbpEd7qWS0PnbEBIWcuVhM1KNrh27EOgo4JswxgjNU guyh24aWiJwEwsBhanigjOOAMRATliBUGuViT2kx5QVYVWt56AfsYq6DnDpA5NAVtXB3 4YVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WA6ZRCaU; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p22-20020a1709027ed600b00153b2d16643si5067875plb.587.2022.04.22.12.36.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:36:26 -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=@gmail.com header.s=20210112 header.b=WA6ZRCaU; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7FB6D165EFF; Fri, 22 Apr 2022 11:44:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240169AbiDTRmx (ORCPT + 99 others); Wed, 20 Apr 2022 13:42:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237160AbiDTRmv (ORCPT ); Wed, 20 Apr 2022 13:42:51 -0400 Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9971B43ADF; Wed, 20 Apr 2022 10:40:04 -0700 (PDT) Received: by mail-lf1-x130.google.com with SMTP id x33so4311302lfu.1; Wed, 20 Apr 2022 10:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=fDm0hCeP1iuF9WL7RiqDe/J3rtlxPQX1zeA/vezHRa0=; b=WA6ZRCaU3cdlumlpbvWHxfloi03BAMhbknENhqsaWPbHRTCv9SZOTLs6l5atjl/rNB WhDgJgxuFoJ/Qjj/q6o0HjImWWNexAoe3iis41zRi8T7cp+cNxoIeLsaIrzGx7M+aP5f yTAUWAt+k6SrK4lNorKyp7zkayVMzWGHtU826B3wT4VF+PqS8rhJhhQw+6nzVJOpHjPO Z+fl0//75bOefoMVkqelSYCTT7/Fe7c10WZtohovtXDzsn3PyILek6foHM5/OQmQFSLW u1+mJd34DWLpm19EGHWC0J1RcHPjVNnGwatLnAkk0E4lmNtGfNVpgiVhfCCchSqTE+cC Tr+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=fDm0hCeP1iuF9WL7RiqDe/J3rtlxPQX1zeA/vezHRa0=; b=zdu1gMgQd6+MDp3H8S+NCcjuLHjg29gxBItxzhtBIdwItURUHeGDvVxDd7Mc09tuhc 4oUUPfWa+8mEi0zyGAq7GcVNFvvm5YRDMX78DVR8C5Iinw7UeEm5BXDXhei5gVf+G1mT AG8R71Q4zAmHEtvlJ6CcP5NS/fhk/iO+FXA46+t6f3/RD/XHCToyooePf3PbLN75+T7u lvG9VDHtV8lkQr2DwRgsbV34xOE86cDYZAS2W5GgHfI5Sv853ZA5K+MTAF37JVftQA4J avGSEeR493mgbugCyRHNtobBOhgqvnjhU4CwvU+xYZz3pZsFzuhc/3gw2d10pKpgkTcq F4Cg== X-Gm-Message-State: AOAM533Nzb5cLxGlJXU9gTDaSRq0L8vJ+19cmOs2DzZXm9rIccZNRuMt knmk/celBkcCvJHMFaB9GwA= X-Received: by 2002:a05:6512:1504:b0:44b:36e:b50d with SMTP id bq4-20020a056512150400b0044b036eb50dmr15640332lfb.558.1650476402746; Wed, 20 Apr 2022 10:40:02 -0700 (PDT) Received: from ?IPV6:2001:14ba:9cae:8c00:9682:e720:334f:2fac? (dxw3k4yf2tnxwyp6sg02y-3.rev.dnainternet.fi. [2001:14ba:9cae:8c00:9682:e720:334f:2fac]) by smtp.gmail.com with ESMTPSA id s17-20020a195e11000000b0046eec768984sm1785063lfb.200.2022.04.20.10.40.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Apr 2022 10:40:02 -0700 (PDT) Message-ID: <90e11a93-4f3a-2209-2bc2-acfb791b8ac0@gmail.com> Date: Wed, 20 Apr 2022 20:40:08 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH] fs/ntfs3: remove redundant assignment to variable vcn Content-Language: en-US To: Colin Ian King , Konstantin Komarov , ntfs3@lists.linux.dev Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev References: <20220418140038.82843-1-colin.i.king@gmail.com> From: Kari Argillander 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-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE 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 18.4.2022 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 Reviewed-by: Kari Argillander > --- > 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;