1

ext4: block_validity: Remove unnecessary ‘NULL’ values from new_node

new_node is assigned first, so it does not need to initialize the
assignment.

Signed-off-by: Li zeming <zeming@nfschina.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://patch.msgid.link/20240402022300.25858-1-zeming@nfschina.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
This commit is contained in:
Li zeming 2024-04-02 10:23:00 +08:00 committed by Theodore Ts'o
parent f2661062f1
commit 57802c73bf

View File

@ -72,7 +72,7 @@ static int add_system_zone(struct ext4_system_blocks *system_blks,
{ {
struct ext4_system_zone *new_entry, *entry; struct ext4_system_zone *new_entry, *entry;
struct rb_node **n = &system_blks->root.rb_node, *node; struct rb_node **n = &system_blks->root.rb_node, *node;
struct rb_node *parent = NULL, *new_node = NULL; struct rb_node *parent = NULL, *new_node;
while (*n) { while (*n) {
parent = *n; parent = *n;