Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5041341rwi; Mon, 17 Oct 2022 14:41:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Vt4QgiRWe6pCY1R5lInCFBGtKY+U0T6S2KKXhObRBi+OWhrWqDj5FSXILNt1JrURucv+i X-Received: by 2002:a17:906:9be9:b0:78d:2f63:10dd with SMTP id de41-20020a1709069be900b0078d2f6310ddmr10242677ejc.479.1666042867470; Mon, 17 Oct 2022 14:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666042867; cv=none; d=google.com; s=arc-20160816; b=aec4VFd9W9WlmAvWzPEXpsbggvqQCuiHEIX6OkS6dv1MDVelQm07r9syA9BwSRlZlZ W1NWZuMdqZuMg5vzIe6eSckwwzpD7nSj7LIxg9Gn1Ii0FM+s5uXoF+6sspk++SC+X7g3 ubFZFZ1BYUZrKhjxC5eV7Y/etJ2hnrhpViyuO4M+KvRbFdyjSWUzfgU7xaeYCVwX6QUj 82w/H0EaTK+m5FgyiX3Ms6bi0ee4Rg9zAZrWoGF86UEndFmSVifppKoo4zeR+gxCGKvc 6lL5gBnIjxm2uVwKXYqNBGK6bk1p//0cl59gcn9ftAAmGoTD8XZ8M/w8+oQM5eZ4TAGg uk2w== 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=Mrrqbi0ETnzpqhsWzfV/EevlRMo1cT5WVvO8a9vtxFI=; b=z9mEkObeXkIQMykDLs1eis0IiswslexQsuOm4EGn7ZYPBGRGOuruUpxPKvdMCNJ7zd 5Eb+fTE3fbN9x0XlNp6MpOEP7BMoNL78IllCotFNiKKJppYYkeR+Phsne8pIIgrPX1I1 ptAs0c47C6uDXKD9VCr/AyE0sve4jHPqkPBFO3suYRC4LGdk3s7L8ta2VlbXUCTm8WUi 8ZvQ9bPFdRqKbz30EQNrD361vT2DtXvQJ3gKW3OjjDMi18znEq8vLgH1CspF3Y2tlUGJ YASApiWt+FmZOqgMBA/fg8cuZmb5l4RNgyFUqwsCHZmQYsT93khy9cxoVEzs3RLZWtDy mRJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UdHksNN5; 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 u7-20020a50eac7000000b004580ae4abfcsi8743148edp.460.2022.10.17.14.40.41; Mon, 17 Oct 2022 14:41:07 -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=UdHksNN5; 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 S230401AbiJQVdP (ORCPT + 99 others); Mon, 17 Oct 2022 17:33:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230196AbiJQVdI (ORCPT ); Mon, 17 Oct 2022 17:33:08 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC9757CB60; Mon, 17 Oct 2022 14:33:06 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id bk15so20461124wrb.13; Mon, 17 Oct 2022 14:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Mrrqbi0ETnzpqhsWzfV/EevlRMo1cT5WVvO8a9vtxFI=; b=UdHksNN5rbd+RRvD3BeLgx17CdEj+flAObUVYgo/sRpGqkAIUan5iaac3ySA8qkQkd hx7QqP4GyoXDJhwSq3nVouYXs6WH+8+GTb+0iu6RVkOhL900KXB7x7y3mGx9tc3w2Cbt daLkdaGHUZJo6LlVfb1DWX4A2IsthEaCLoc2LHEOzJIrcxVNXwqUC0+BWwPDjqluTxgP g78+v+UbeomWaUKDZf/8J1WCBJKwbJUFE5bLuQJ4WdR0jVVIi4J5Mtsanij9uK5V8mFm 81nr5Won27d5y53ictdytiaZ+tJ0BWHwR8w9aA26c82fwwJ294zaE1C9DIXDqM/3av4V 8/WA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Mrrqbi0ETnzpqhsWzfV/EevlRMo1cT5WVvO8a9vtxFI=; b=mnBHvreezLu1JVEuQh4xOVXQR+T1jSawIS8tcPzPq6dFdtpiAYI/mxBXypZArPKxFx CrUv8gWjVEFH2UokOBLeJOPl9ZVZBfbBlACahncQHRQksDqWbIyiQKq+prkYDUqkSqhQ sSBUGBVU8CbHWoC8WRpjP89KB/JuKfoo3ZeIZmofp/hp44wwYEbs17UMJqDXqW2JgPxd 4RD4XXcgtB9gw57v5lr7gGvFWQAuhykSKmXZaGILUXjskvURBQobm59vgOBi2nEcrmr8 vNSCUudLDVzvRdv6d3wm0n5YpWVTF83GMRN/W8gf4ozzcPL/O1/qqSoaXtfTP0PEUMQM hUVQ== X-Gm-Message-State: ACrzQf2421HoXUqRuJs1xlrFvxJr6LbO3HTMgsgEn5dFP/aGGmqRXRDj 9VggbuAgSbib0nri2HKzYmQ= X-Received: by 2002:a5d:6745:0:b0:22f:ed4:65d7 with SMTP id l5-20020a5d6745000000b0022f0ed465d7mr7549035wrw.259.1666042384871; Mon, 17 Oct 2022 14:33:04 -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 j19-20020a05600c1c1300b003c6c1686b10sm18151187wms.7.2022.10.17.14.33.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Oct 2022 14:33:04 -0700 (PDT) From: Colin Ian King To: Anton Altaparmakov , linux-ntfs-dev@lists.sourceforge.net Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] fs/ntfs: remove redundant assignment to pointer m Date: Mon, 17 Oct 2022 22:33:03 +0100 Message-Id: <20221017213303.862794-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.37.3 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 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 The pointer m is being assigned a value that is never read, it is being re-assigned to a NULL later on. The assignment is redundant and can be removed. Cleans up clang scan build warning: fs/ntfs/file.c:194:3: warning: Value stored to 'm' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King --- fs/ntfs/file.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/ntfs/file.c b/fs/ntfs/file.c index c481b14e4fd9..56d08374739a 100644 --- a/fs/ntfs/file.c +++ b/fs/ntfs/file.c @@ -191,7 +191,6 @@ static int ntfs_attr_extend_initialized(ntfs_inode *ni, const s64 new_init_size) err = -EIO; goto err_out; } - m = ctx->mrec; a = ctx->attr; BUG_ON(!a->non_resident); BUG_ON(old_i_size != (loff_t) -- 2.37.3