Skip to contentSkip to conversation

btrfs: remove redundant assignment to pointer node

PATCH New Colin Ian King 1 participant 1 message Oct 2, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 btrfs: remove redundant assignment to pointer node

The pointer node is being assigned a value that is never read, the jump back to label 'again' re-assigns node to the return value from the call to btrfs_get_delayed_node. The assignment is redundant and can be removed.

---
 fs/btrfs/delayed-inode.c | 1 -
 1 file changed, 1 deletion(-)
fs/btrfs/delayed-inode.c +0 -1
index 508bdbae29a0..4d37ed88c856 100644
@@ -154,7 +154,6 @@ static struct btrfs_delayed_node *btrfs_get_or_create_delayed_node(
 		/* Somebody inserted it, go back and read it. */
 		xa_unlock(&root->delayed_nodes);
 		kmem_cache_free(delayed_node_cache, node);
-		node = NULL;
 		goto again;
 	}
 	ptr = __xa_store(&root->delayed_nodes, ino, node, GFP_ATOMIC);
Signature · 1 line
2.39.5