]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Remove redundant assignment in btrfs_get_extent_fiemap
authorNikolay Borisov <nborisov@suse.com>
Wed, 12 Dec 2018 07:42:34 +0000 (09:42 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 25 Feb 2019 13:13:18 +0000 (14:13 +0100)
commit2bfb83ff7f49dc7a135bcf1f4bcfeb39d2f18e81
tree259a0732f631d4429baa92c720c7dc273144cc9c
parent5622958757217060366a8adee738210af87371f3
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: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c