Skip to content

Commit

Permalink
btrfs: remove spurious BUG_ON in btrfs_get_extent
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Nikolay Borisov authored and David Sterba committed Oct 7, 2020
1 parent 260db43 commit 57297c1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion fs/btrfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -6748,7 +6748,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;
}

Expand Down

0 comments on commit 57297c1

Please sign in to comment.