btrfs: Remove spurious BUG_ON in btrfs_get_extent
PATCH 1/1 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 <[email protected]>
--- fs/btrfs/inode.c | 1 - 1 file changed, 1 deletion(-)
fs/btrfs/inode.c +0 -1
@@ -6740,7 +6740,6 @@ struct extent_map *btrfs_get_extent(struct btrfs_inode *inode,free_extent_map (em);return ERR_PTR (err); } -BUG_ON (!em);/* Error is always set */ return em; }
Signature · 1 line
2.17.1
Quoted 4 lines · Nikolay Borisov
That
BUG_ONcannot 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 <[email protected]>
Added to misc-next, thanks.