aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi zeming <[email protected]>2024-04-02 10:23:00 +0800
committerTheodore Ts'o <[email protected]>2024-06-27 09:34:00 -0400
commit57802c73bf1ba7adf17f3d39b68bab7f4d9a5635 (patch)
tree6e3d670bf8ae51b33172ba710e63655a2d8850e1
parentf2661062f16b2de5d7b6a5c42a9a5c96326b8454 (diff)
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 <[email protected]> Reviewed-by: Andreas Dilger <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
-rw-r--r--fs/ext4/block_validity.c2
1 files changed, 1 insertions, 1 deletions
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;