mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
btrfs: get rid of useless label in btrfs_create_dio_extent()
There's no point in having a label where under it we do nothing but return a variable. So remove it and directly return where we used to goto. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
3f950867c3
commit
a503aa0610
|
|
@ -150,7 +150,7 @@ static struct extent_map *btrfs_create_dio_extent(struct btrfs_inode *inode,
|
|||
if (type != BTRFS_ORDERED_NOCOW) {
|
||||
em = btrfs_create_io_em(inode, start, file_extent, type);
|
||||
if (IS_ERR(em))
|
||||
goto out;
|
||||
return em;
|
||||
}
|
||||
|
||||
ordered = btrfs_alloc_ordered_extent(inode, start, file_extent,
|
||||
|
|
@ -167,7 +167,6 @@ static struct extent_map *btrfs_create_dio_extent(struct btrfs_inode *inode,
|
|||
ASSERT(!dio_data->ordered);
|
||||
dio_data->ordered = ordered;
|
||||
}
|
||||
out:
|
||||
|
||||
return em;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user