[PATCH][next] btrfs: remove redundant assignment to pointer node

Colin Ian King posted 1 patch 1 month, 3 weeks ago
fs/btrfs/delayed-inode.c | 1 -
1 file changed, 1 deletion(-)
[PATCH][next] btrfs: remove redundant assignment to pointer node
Posted by Colin Ian King 1 month, 3 weeks ago
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.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 fs/btrfs/delayed-inode.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c
index 508bdbae29a0..4d37ed88c856 100644
--- a/fs/btrfs/delayed-inode.c
+++ b/fs/btrfs/delayed-inode.c
@@ -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);
-- 
2.39.5