Message ID | 20241002163658.957316-1-colin.i.king@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [next] btrfs: remove redundant assignment to pointer node | expand |
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);
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(-)