From patchwork Tue Apr 2 02:41:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 1918613 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org (client-ip=150.107.74.76; helo=gandalf.ozlabs.org; envelope-from=srs0=caic=lh=vger.kernel.org=linux-ext4+bounces-1814-patchwork-incoming=ozlabs.org@ozlabs.org; receiver=patchwork.ozlabs.org) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4V7sbc3bRSz1yYB for ; Tue, 2 Apr 2024 13:42:03 +1100 (AEDT) Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by gandalf.ozlabs.org (Postfix) with ESMTP id 4V7sbZ4Bnkz4wck for ; Tue, 2 Apr 2024 13:42:02 +1100 (AEDT) Received: by gandalf.ozlabs.org (Postfix) id 4V7sbZ48PSz4wyY; Tue, 2 Apr 2024 13:42:02 +1100 (AEDT) Delivered-To: patchwork-incoming@ozlabs.org Authentication-Results: gandalf.ozlabs.org; dmarc=none (p=none dis=none) header.from=nfschina.com Authentication-Results: gandalf.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=linux-ext4+bounces-1814-patchwork-incoming=ozlabs.org@vger.kernel.org; receiver=ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by gandalf.ozlabs.org (Postfix) with ESMTPS id 4V7sbY5gkfz4wck for ; Tue, 2 Apr 2024 13:42:01 +1100 (AEDT) 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 097691F2228F for ; Tue, 2 Apr 2024 02:41:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 950E610788; 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=3A_extents=3A_Remove_unnecessary_=E2=80=98NU?= =?utf-8?q?LL=E2=80=99_values_from_path?= 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 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;