]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
fs/hfsplus: replace if/BUG by BUG_ON
authorFabian Frederick <fabf@skynet.be>
Thu, 16 Apr 2015 19:47:09 +0000 (12:47 -0700)
committerLinus 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

index c1422d91cd36c345cfe216205b0e269a340d6d88..528e38b5af7fecf9e3f202298f0773ea96a7e174 100644 (file)
@@ -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;