From nobody Mon Feb 9 15:09:28 2026 Received: from mail.nfschina.com (unknown [42.101.60.195]) by smtp.subspace.kernel.org (Postfix) with SMTP id C1502DDA9; Tue, 2 Apr 2024 02:23:13 +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=1712024598; cv=none; b=esrQQqlnUobQuzzLwCiPtjcdZbgQ5EeYhpbXl8gdsjkYHqpW5dHPv1/ZbTrHcos7Gf6fxqw0jSP7G0z/2C0PMwGeIVWKLXTy96G4/NRhH/Q4+Tz5wmbpmOtbe1hwab9xeEuTDGlhuLoAfoUrTBwpCnrHp/w3/Gv5am2KTCBAyac= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712024598; c=relaxed/simple; bh=lK3dB+eY3hL7m93zgy5ec2mL/lUb+/06ViM6WyDGPNc=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version:Content-Type; b=pZn65deEiZ1I5aFAC9/TxnRSbFMJ0GGgv0BXo4EeohJl57/nT/qcQvRw+Xcj6bmtMU8oFRRGo0MixshyZK2wW+7E70/JQcYWDxf5kz9IulajcXfh1uC4/6GzStu2LlJuoioUNOpw7ibKYlnUGS8RxHAUqSsU+szZk07pHPLWFf0= 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 999C46055052C; Tue, 2 Apr 2024 10:23:07 +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:=20block=5Fvalidity:=20Remove=20unnecessar?= =?UTF-8?q?y=20=E2=80=98NULL=E2=80=99=20values=20from=20new=5Fnode?= Date: Tue, 2 Apr 2024 10:23:00 +0800 Message-Id: <20240402022300.25858-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" new_node is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming Reviewed-by: Andreas Dilger --- fs/ext4/block_validity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 *sys= tem_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; =20 while (*n) { parent =3D *n; --=20 2.18.2