Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02950af4 authored by Nikolay Borisov's avatar Nikolay Borisov Committed by David Sterba
Browse files

btrfs: Remove redundant assignment in btrfs_get_extent_fiemap



hole_len is only used if the hole falls within the requested range. Make
that explicitly clear by only assigning in the corresponding branch.

Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarNikolay Borisov <nborisov@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent f3714ef4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7005,7 +7005,7 @@ struct extent_map *btrfs_get_extent_fiemap(struct btrfs_inode *inode,

	if (delalloc_len > 0) {
		u64 hole_start;
		u64 hole_len = len;
		u64 hole_len;
		const u64 hole_end = extent_map_end(hole_em);

		em = alloc_extent_map();