mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 12:35:52 +02:00
btrfs: remove pointless 'out' label from clone_finish_inode_update()
The label is only used once and we can instead return directly where it's used, besides the fact that all we do under the label is to return the value of 'ret'. So get rid of the label and return directly. Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.cz> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
5cf0e668ea
commit
5ff6050fcd
|
|
@ -46,11 +46,9 @@ static int clone_finish_inode_update(struct btrfs_trans_handle *trans,
|
|||
if (ret) {
|
||||
btrfs_abort_transaction(trans, ret);
|
||||
btrfs_end_transaction(trans);
|
||||
goto out;
|
||||
return ret;
|
||||
}
|
||||
ret = btrfs_end_transaction(trans);
|
||||
out:
|
||||
return ret;
|
||||
return btrfs_end_transaction(trans);
|
||||
}
|
||||
|
||||
static int copy_inline_to_page(struct btrfs_inode *inode,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user