]> www.infradead.org Git - linux.git/commitdiff
ext4: block_validity: Remove unnecessary ‘NULL’ values from new_node
authorLi zeming <zeming@nfschina.com>
Tue, 2 Apr 2024 02:23:00 +0000 (10:23 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 27 Jun 2024 13:34:00 +0000 (09:34 -0400)
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>
fs/ext4/block_validity.c

index 6fe3c941b565142a2b6956bfaab6c78b085e602f..87ee3a17bd29c914740c99fad7b61194e8a27115 100644 (file)
@@ -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 = &system_blks->root.rb_node, *node;
-       struct rb_node *parent = NULL, *new_node = NULL;
+       struct rb_node *parent = NULL, *new_node;
 
        while (*n) {
                parent = *n;