]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: remove spurious BUG_ON in btrfs_get_extent
authorNikolay Borisov <nborisov@suse.com>
Mon, 3 Aug 2020 09:43:18 +0000 (12:43 +0300)
committerDavid Sterba <dsterba@suse.com>
Wed, 7 Oct 2020 10:06:50 +0000 (12:06 +0200)
commit0e806fdd7edf805c24cd35b27b8f84c1daf3b0f8
treee8768a7e4228d1aa9334733c0ae490d4c2134067
parentd1c694cdf66b50cefa8409f51786c0beaa5d3bb2
btrfs: remove spurious BUG_ON in btrfs_get_extent

That BUG_ON cannot ever trigger because as the comment there states -
'err' is always set. Simply remove it as it brings no value.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/inode.c