Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1813370lqz; Mon, 1 Apr 2024 19:53:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVm3dd90Kod9ePSTn0y/x1JT5dGswTWfVAoYDPQzSAAkjhBg2EEn1oCI4yrWXApLTW7QREK2Hgi9K1UuhHCtJwLFbdiQWsOKHtoQ92dZQ== X-Google-Smtp-Source: AGHT+IHFm6gy3Ej3npXxRkkxUQDESTIShEtjXrcYL6ZiRuVVgvCR0AkbX6a8PAl6HvmUDjIBmjQ7 X-Received: by 2002:aa7:8893:0:b0:6e6:bfb6:371 with SMTP id z19-20020aa78893000000b006e6bfb60371mr15867154pfe.34.1712026391364; Mon, 01 Apr 2024 19:53:11 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712026391; cv=pass; d=google.com; s=arc-20160816; b=qXzrV8uPZGu9FIa6csMiSU4QHBw9kNbahBSUDytU8PIVbpELRzj6nzmzv6lcZ8dVQl LmZAm4LmIWa9aXjnFnkCVyneuhKMoibfsKuLSmwmcCfalT1zSKsK2BCK0QwKVgNXJ0q1 i5MqA1Td+U7CaoKs6DbuhdEwl76UNujX+glwywTD9BcAGYMXoSmaP7gDF+txRuk/m522 tH5Bw+/l7U7oFvH23Ji/jbhBtrU6zdgQqH8pXtUjlAlrR+wM7j9lbh+WS726mbRCYEuo X9tej9hmLoFBGzvMgAhVWzKwJ4wSv88ZKi95Kem0evg0u6C+zSE3whN7AsiE//gIurrx /f6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=AUYnDdaD3zSTU3h7RqRBp8gdV8WHr1m02woY90T+Wiw=; fh=ICnGcGdC7Ak1/H+DrSY3RajhWH4HNxoziYjAhHP+d6I=; b=0pws1Nr5PdYfX1MvARthx2C9oR/OOh19WmwQW3Dt76k72XfS4PsvsGXrdxU1PQ1buZ iqV7MzmYL/pxiGsie+rnGDRXDRYKeCqLRgz/4PMuVn3QX7j+wt80qSZpVdI+qo/Y3zP/ prfISShJj7KZj5LflVbXYTMzC1DAsknnS6s77FKDJcNugE6L0ZzSTX/vM6bNG4aN3/ss Gj2A2OQh3FxD5q9ZeWUnUTHD9D/Fr0ANRlEbO+IDTyCazCv48bG7QsFcNGmYWf/8/KKa z2W2O3UlogZea7G4JstkGvf+ZeDTgqjhEoqu0yK1vGnqem5g3kyaw+uq6vkh84UlGaQJ qCEA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-ext4+bounces-1814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1814-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id o9-20020a656a49000000b005ce030a6460si10975545pgu.71.2024.04.01.19.53.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Apr 2024 19:53:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=nfschina.com); spf=pass (google.com: domain of linux-ext4+bounces-1814-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1814-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6F1B4B219DF for ; Tue, 2 Apr 2024 02:42:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B390B111A3; Tue, 2 Apr 2024 02:41:53 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id A4F2A7E6; Tue, 2 Apr 2024 02:41:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=42.101.60.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712025713; cv=none; b=DECJkQtyRPHxbIf4JWs5DoVytBmXsKEVXjfY4EEkOPmpfHgG9k6T38lHSvqJ1DnQJN4H8IwuW+btmfTA9TVDeaCA9qJaA4vK8eSMh6iF9niSCFfXlXJkGbx7gisopqxoBrKUrVtxMdqxfy7eBFrT7Doir8tMk8Z0LGDxgbIvi+Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712025713; c=relaxed/simple; bh=wy+1wWxus3Q38bJ2nREE6uZNn5pDAYb82HW7ZqHZbS4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=Ij70/0RHfyxSORUzpwyfDexqhIPiIbDztR7M0rILrnwPX3Y3djmP3Q9RFmmyj1U69gOwBcad9i5Tp3HoTv2xBkAD65RMeFbh+up3rnVU2H8aj20pf4D+kkXezzIC0Mkb2340TBx/3ZfB9Ti+pcJUCpm2wKMAx5qSsAT8tqdbJec= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com; spf=pass smtp.mailfrom=nfschina.com; arc=none smtp.client-ip=42.101.60.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nfschina.com Received: from localhost.localdomain (unknown [219.141.250.2]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPA id 86079605A1028; Tue, 2 Apr 2024 10:41:47 +0800 (CST) X-MD-Sfrom: zeming@nfschina.com X-MD-SrcIP: 219.141.250.2 From: Li zeming To: tytso@mit.edu, adilger.kernel@dilger.ca Cc: linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?ext4:=20extents:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=98NULL=E2=80=99=20values=20from=20path?= Date: Tue, 2 Apr 2024 10:41:40 +0800 Message-Id: <20240402024140.28456-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit path is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming --- fs/ext4/extents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 7669d154c05e0..4ab96f01a6f31 100644 --- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -600,7 +600,7 @@ __read_extent_tree_block(const char *function, unsigned int line, int ext4_ext_precache(struct inode *inode) { struct ext4_inode_info *ei = EXT4_I(inode); - struct ext4_ext_path *path = NULL; + struct ext4_ext_path *path; struct buffer_head *bh; int i = 0, depth, ret = 0; -- 2.18.2