summaryrefslogtreecommitdiffstats
path: root/fs/hfsplus
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2015-04-16 21:47:09 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-17 15:04:05 +0200
commit7ce844a20eb58c9823205e091b815163464e9d19 (patch)
tree68bb93bb3c8505249fa5eaaf627cbdf1130893cb /fs/hfsplus
parentfs/hfsplus: use bool instead of int for is_known_namespace() return value (diff)
downloadlinux-7ce844a20eb58c9823205e091b815163464e9d19.tar.xz
linux-7ce844a20eb58c9823205e091b815163464e9d19.zip
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>
Diffstat (limited to 'fs/hfsplus')
-rw-r--r--fs/hfsplus/bfind.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/hfsplus/bfind.c b/fs/hfsplus/bfind.c
index c1422d91cd36..528e38b5af7f 100644
--- 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;