projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ad8d63
)
fs/hfsplus: replace if/BUG by BUG_ON
author
Fabian Frederick
<fabf@skynet.be>
Thu, 16 Apr 2015 19:47:09 +0000
(12:47 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 17 Apr 2015 13:04:05 +0000
(09:04 -0400)
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>
fs/hfsplus/bfind.c
patch
|
blob
|
blame
|
history
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;