Skip to content

Commit

Permalink
fs/hfsplus: replace if/BUG by BUG_ON
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Frederick <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Apr 17, 2015
1 parent 1ad8d63 commit 7ce844a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/hfsplus/bfind.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,7 @@ int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd,
int b, e;
int res;

if (!rec_found)
BUG();

BUG_ON(!rec_found);
b = 0;
e = bnode->num_recs - 1;
res = -ENOENT;
Expand Down

0 comments on commit 7ce844a

Please sign in to comment.