diff options
author | Nikolay Borisov <nborisov@suse.com> | 2020-08-03 12:43:18 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2020-10-07 12:06:50 +0200 |
commit | 57297c1e8e1ce030050bf07ffa7182aaa588e2ac (patch) | |
tree | e8768a7e4228d1aa9334733c0ae490d4c2134067 /fs/btrfs/inode.c | |
parent | 260db43cd2f556677f6ae818ba09f997eed81004 (diff) | |
download | lwn-57297c1e8e1ce030050bf07ffa7182aaa588e2ac.tar.gz lwn-57297c1e8e1ce030050bf07ffa7182aaa588e2ac.zip |
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>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r-- | fs/btrfs/inode.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 9570458aa847..df08ace5d914 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -6748,7 +6748,6 @@ out: free_extent_map(em); return ERR_PTR(err); } - BUG_ON(!em); /* Error is always set */ return em; } |