Received: by 2002:ab2:3350:0:b0:1f4:6588:b3a7 with SMTP id o16csp1596971lqe; Mon, 8 Apr 2024 13:55:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXgrooQrzMEBza7otlRVWD4fBnLVK+Pkj7sQKG0CyqTl4Z8R6tjby9HRmta7im/X5JFnu3T+HK4Kg3qMKvcNsuFNqf2A88TeS6nC4cNtA== X-Google-Smtp-Source: AGHT+IGgZfksU7szozH877emacvLmFMlG5V3luNjUDRfM9diKEL+DXVpfYVc8VWkccqRFnwkDZ2O X-Received: by 2002:ad4:5f8b:0:b0:699:28f1:49a1 with SMTP id jp11-20020ad45f8b000000b0069928f149a1mr1138216qvb.21.1712609726628; Mon, 08 Apr 2024 13:55:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712609726; cv=pass; d=google.com; s=arc-20160816; b=Po76K2F6vriuLdfBIndW4t/ii8krvg7pueiNnZTXMC5I1ipif1iV6vzlgn65N2BKSR KetBoJQz6klqQMadew/M4gPYNR7vSa8Gb9dE9HLNpiWoP22aYM/KYPjZM/fWdzfN18PU dmRS1m77riLm+FDmJQrMGaZfRVxyur/b2MLvJHADgCNUEHlsnuHMJD9ZpbBzN+eLMfWa hw3nexvpImSMSXBaYpBg372ImzHuJ8bB1DTRN6bkMyjPIDw2b9wY2XwSYgur168csYDE cDDhOYvDZ24N6O19f0OLZdbPz/a5MHByE0jzS0HIoOPyL3CppyRgPprwCwb8Z4pTluGX nkCw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:to:cc:in-reply-to:date:subject:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:from :dkim-signature; bh=mXo0bBXwc68qEXAAMO2s2pb6MbtWIrtXNEI/+8vfi7s=; fh=NupvuUVSE5qQQMZjFBddflcdgYIY2YqJMvd5Gf4Tfek=; b=ly1iBP+yfVcOiBWM4NscgjC0VkodC3F0TakR7zPZxQHzZwRuMxl5VzLqaW76ysV679 xzznD50TFZoPrcmseBgWHMy4omz/eFnEPqg64cd+tc+z9tvSm3vi/OS/dj9XYtJ+Khvi PVoFe9pl9Fn7VW4MaVC9g4BOqFXQw6aK6Um2EWmMow+68F8/65fzcG9E6kO1aMu0NNtT cPkqP97XXBWv0LrTzFNNprx+ZsGNbSh6HuIiSGtY/fJwUUYS1zS1xnABvEP/82/xw3MW QAN9H3gefabiQBjIWG9v8lomoa1eUnPrTMhV6sQ1g7Fc7QQgW3n/UL1A1ud7l9EFelO4 QT6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dilger-ca.20230601.gappssmtp.com header.s=20230601 header.b=mK3NbKZb; arc=pass (i=1 spf=pass spfdomain=dilger.ca dkim=pass dkdomain=dilger-ca.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-135925-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135925-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id qd23-20020ad44817000000b0069b1f09605asi2185801qvb.301.2024.04.08.13.55.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Apr 2024 13:55:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-135925-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@dilger-ca.20230601.gappssmtp.com header.s=20230601 header.b=mK3NbKZb; arc=pass (i=1 spf=pass spfdomain=dilger.ca dkim=pass dkdomain=dilger-ca.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-135925-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-135925-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5B05A1C2229E for ; Mon, 8 Apr 2024 20:55:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 492F214830F; Mon, 8 Apr 2024 20:54:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dilger-ca.20230601.gappssmtp.com header.i=@dilger-ca.20230601.gappssmtp.com header.b="mK3NbKZb" Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 25F5414601C for ; Mon, 8 Apr 2024 20:54:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712609673; cv=none; b=JZLKLa9EqPU/MxW3n+KQQjkn17Xpib30/fPaYPVOhUuPCNfZhwDjHyv5hoZxoRoMa2uT6eJXi4cBgW4z6FxGAtnPzhKpsjsenA0kyrajAb3fCzMMuUrDr9BSRKWLhR0zB7Xyho6R4ivxcBQ/iNbGQ4I/bVTRBqk+1bE8A/j+OaE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712609673; c=relaxed/simple; bh=FWzuTDS/0jE8Zj1WSIL/PuE/iPyHj5EpRy5w5pnchQw=; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date: In-Reply-To:Cc:To:References; b=Jp+1KLfrwOfQls5kuJjxAYJzHvidKldXIj8s6848EphtOnGasE3OvqArjLD6YA6jFeqWCefqYTkE0noDSCNIa/y7vRHbGj96aSnBp/ZdqvYhF/v35HrEp2Hjh/482OjTOOkXGLGbX62lalYWA0ZC3XOMSACbpAmwKwwW9Xiy/YI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dilger.ca; spf=pass smtp.mailfrom=dilger.ca; dkim=pass (2048-bit key) header.d=dilger-ca.20230601.gappssmtp.com header.i=@dilger-ca.20230601.gappssmtp.com header.b=mK3NbKZb; arc=none smtp.client-ip=209.85.210.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dilger.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dilger.ca Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-6ecfeefe94cso2321739b3a.0 for ; Mon, 08 Apr 2024 13:54:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dilger-ca.20230601.gappssmtp.com; s=20230601; t=1712609669; x=1713214469; darn=vger.kernel.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=mXo0bBXwc68qEXAAMO2s2pb6MbtWIrtXNEI/+8vfi7s=; b=mK3NbKZb/t5APRnXCYLsSRrIO1lsEKQCCDP0H/DrH8zGgomMmxy/Gxdb8OhIVOmIjf 8Qt+PLfM+jLVpu9YASQRBYA6yXkCmq3OLtFbH9/1gF/lDYuYW0Ov3QxrIhvqiUcIAFme rhPwG6nxcxg2aYKkgl+sv/Bq8BT58JNdlCl7bJL54knwp4LTPOBZMEgQMjTT4a0Kgh3Z 4OuqWGtsthZvEPmls+3jI05FByTd8/6s+SyPwKJn6ubwRjyOvtGUIrrCaaK+XlDNkRyj sV3JZ18jOmWjpFfETpjWtA/vnuB0P9XSoVir60hiVYxVISMlgfbqcEGpc8x9tmTMJtul z+Mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712609669; x=1713214469; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mXo0bBXwc68qEXAAMO2s2pb6MbtWIrtXNEI/+8vfi7s=; b=tGLKdUZP82vIhSwQC3+Sr0VDjORuxldGGbwVu169G8cXsaC9uavgowgNr+HjpyEY4e K0x8hB1pSf+IuJn6A9ssn7sSK3OzttunrnAQjTYbYNBU47P8yV6ZsYnbmZCRxm0L1rrH ZU0V0JN8nTMBNAcHKGH5KuRWH4YZWmFnFhUke9ywp9liV2vl3WrcXsUYWnpIFwLz2lOc vRkz57c0sGSv8uSYd0h2bWrB+syI5rDLy2CdJmzo7qDv5zLE1bvnHZb5WJff9/9L0I52 IrB1H81kxaYw1Eo/Bu+iHHy21vIbYJzMuLdwnJY1vJi1PthceI0BZELg1XtUT8oRRLiO QijQ== X-Forwarded-Encrypted: i=1; AJvYcCU9PT6fzzPqlJWw/wShzS13Hjyt+ur4GjkXIXK62c84MyGN6prkHadEqYVUetMxjg5kfQ0/I99JIzKQ0MLCJOumSY4Ar2G5YpC+tDJh X-Gm-Message-State: AOJu0YzvOzSpmKS2kT+D1RbVmceTIyy4kO/f1Xr5i9+juNXJyKoOkTCK 2usRsgeUOGsMV1yswV7DNU0k8K6SC8hvTWs8TZJq4Vbpj3RhcELzDzsBW60+qjA= X-Received: by 2002:a05:6a00:14ca:b0:6ed:21b2:ca54 with SMTP id w10-20020a056a0014ca00b006ed21b2ca54mr1122436pfu.17.1712609669451; Mon, 08 Apr 2024 13:54:29 -0700 (PDT) Received: from cabot.adilger.int (S01068c763f81ca4b.cg.shawcable.net. [70.77.200.158]) by smtp.gmail.com with ESMTPSA id u14-20020a056a00098e00b006e5af565b1dsm6996684pfg.201.2024.04.08.13.54.28 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Apr 2024 13:54:28 -0700 (PDT) From: Andreas Dilger Message-Id: <4E5BC096-0EEC-467E-8C6B-276CF5BED332@dilger.ca> Content-Type: multipart/signed; boundary="Apple-Mail=_63F7C3C4-1B33-4AA2-B964-892D266A9523"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: =?utf-8?Q?Re=3A_=5BPATCH=5D_ext4=3A_block=5Fvalidity=3A_Remove_un?= =?utf-8?Q?necessary_=E2=80=98NULL=E2=80=99_values_from_new=5Fnode?= Date: Mon, 8 Apr 2024 14:54:27 -0600 In-Reply-To: <20240402022300.25858-1-zeming@nfschina.com> Cc: Theodore Ts'o , Ext4 Developers List , Linux Kernel Mailing List To: Li zeming References: <20240402022300.25858-1-zeming@nfschina.com> X-Mailer: Apple Mail (2.3273) --Apple-Mail=_63F7C3C4-1B33-4AA2-B964-892D266A9523 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On Apr 1, 2024, at 8:23 PM, Li zeming wrote: >=20 > new_node is assigned first, so it does not need to initialize the > assignment. >=20 > Signed-off-by: Li zeming > --- > fs/ext4/block_validity.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/fs/ext4/block_validity.c b/fs/ext4/block_validity.c > index 6fe3c941b5651..87ee3a17bd29c 100644 > --- a/fs/ext4/block_validity.c > +++ b/fs/ext4/block_validity.c > @@ -72,7 +72,7 @@ static int add_system_zone(struct ext4_system_blocks = *system_blks, > { > struct ext4_system_zone *new_entry, *entry; > struct rb_node **n =3D &system_blks->root.rb_node, *node; > - struct rb_node *parent =3D NULL, *new_node =3D NULL; > + struct rb_node *parent =3D NULL, *new_node; This one is more compact and doesn't have the issue with the "cleanup" label at the end. Reviewed-by: Andreas Dilger Cheers, Andreas --Apple-Mail=_63F7C3C4-1B33-4AA2-B964-892D266A9523 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iQIzBAEBCAAdFiEEDb73u6ZejP5ZMprvcqXauRfMH+AFAmYUWYMACgkQcqXauRfM H+COAQ//fd/+Y1hjlh0ZAn9FQop1SO9vmwog5pcjqcyg+JKlMJOu0Fi1UkgsHknj K27qtRDzkX9BeqjKmzAykyVKNUrORnycZeSAz3vx3xTJN+NLjRkggeXX7EvqeZH9 J82FO2IA2TQSY0d87hXyfXPEqNlIqw11jLL2QV76vF68THRgDiZ5pt29qYOdPvx0 CJDtxEqh7xfspPy1clj7JbHjcJdVy9CQnUW+3sxm/SXV5N5jMopl6UcUPMhdQCTr sCOgngYhBw5KNDBH/hui+0KruqGW6+rwVxvKs08E7NMMc6dNXGF0LxUhpAF7CXGm HyJimemGhsw0dLzUzEQgQlv8/uFPs8dzRRCBgUxvYNPFkZA6Y8zCHne6dObcR1oR oWVgGbh183tZRoREFQek1leCiAiA5e4sW/xxEUFDsVE0WCLQiSRiHRPJPwerkATn WiB9NFOopFETY4FtKPq5OxOv0ovzmDezZLaSl7/o3kWdy7kQMz8xNrN+4X+i2W+P uUs8oVsd3PH5Vt6ypRIKJVzszMeg6qrbXHgqMUZSzbpPiGoV+0aJ68O1xijG8WOZ +1abvJjvyH/NxDmoOgae+Mv+fYXThSS8EqMths0y89wfCobGUO2FttusRwSicq1p WyG+xYGVZPyBU0k8cVsvXzLuEuwgCR9iN+eWkStVK4YZ7cnSvCo= =kjFk -----END PGP SIGNATURE----- --Apple-Mail=_63F7C3C4-1B33-4AA2-B964-892D266A9523--