From: Li zeming Date: Tue, 2 Apr 2024 02:23:00 +0000 (+0800) Subject: ext4: block_validity: Remove unnecessary ‘NULL’ values from new_node X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=57802c73bf1ba7adf17f3d39b68bab7f4d9a5635;p=linux.git 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 Reviewed-by: Andreas Dilger Link: https://patch.msgid.link/20240402022300.25858-1-zeming@nfschina.com Signed-off-by: Theodore Ts'o --- diff --git a/fs/ext4/block_validity.c b/fs/ext4/block_validity.c index 6fe3c941b565..87ee3a17bd29 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 = &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;