mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 13:16:22 +00:00
fs/hfsplus: replace if/BUG by BUG_ON
Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1ad8d63d63
commit
7ce844a20e
@ -118,9 +118,7 @@ int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd,
|
|||||||
int b, e;
|
int b, e;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
if (!rec_found)
|
BUG_ON(!rec_found);
|
||||||
BUG();
|
|
||||||
|
|
||||||
b = 0;
|
b = 0;
|
||||||
e = bnode->num_recs - 1;
|
e = bnode->num_recs - 1;
|
||||||
res = -ENOENT;
|
res = -ENOENT;
|
||||||
|
Loading…
Reference in New Issue
Block a user