Skip to content

Commit b96ceab

Browse files
fdmananakdave
authored andcommitted
btrfs: remove pointless out label from update_free_space_extent_count()
Just return directly, we don't need the label since all we do under it is to return. Reviewed-by: Boris Burkov <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
1 parent 3d693c5 commit b96ceab

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

fs/btrfs/free-space-tree.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -491,10 +491,9 @@ static int update_free_space_extent_count(struct btrfs_trans_handle *trans,
491491
return 0;
492492

493493
info = search_free_space_info(trans, block_group, path, 1);
494-
if (IS_ERR(info)) {
495-
ret = PTR_ERR(info);
496-
goto out;
497-
}
494+
if (IS_ERR(info))
495+
return PTR_ERR(info);
496+
498497
flags = btrfs_free_space_flags(path->nodes[0], info);
499498
extent_count = btrfs_free_space_extent_count(path->nodes[0], info);
500499

@@ -510,7 +509,6 @@ static int update_free_space_extent_count(struct btrfs_trans_handle *trans,
510509
ret = convert_free_space_to_extents(trans, block_group, path);
511510
}
512511

513-
out:
514512
return ret;
515513
}
516514

0 commit comments

Comments
 (0)