projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fs/hfsplus: replace if/BUG by BUG_ON
[firefly-linux-kernel-4.4.55.git]
/
fs
/
hfsplus
/
bfind.c
diff --git
a/fs/hfsplus/bfind.c
b/fs/hfsplus/bfind.c
index c1422d91cd36c345cfe216205b0e269a340d6d88..528e38b5af7fecf9e3f202298f0773ea96a7e174 100644
(file)
--- a/
fs/hfsplus/bfind.c
+++ b/
fs/hfsplus/bfind.c
@@
-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;