Skip to content

Commit 57802c7

Browse files
Li zemingtytso
authored andcommitted
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]>
1 parent f266106 commit 57802c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/block_validity.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ static int add_system_zone(struct ext4_system_blocks *system_blks,
7272
{
7373
struct ext4_system_zone *new_entry, *entry;
7474
struct rb_node **n = &system_blks->root.rb_node, *node;
75-
struct rb_node *parent = NULL, *new_node = NULL;
75+
struct rb_node *parent = NULL, *new_node;
7676

7777
while (*n) {
7878
parent = *n;

0 commit comments

Comments
 (0)