X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=fs%2Fhfsplus%2Fbfind.c;fp=fs%2Fhfsplus%2Fbfind.c;h=528e38b5af7fecf9e3f202298f0773ea96a7e174;hb=54e514b91b95d6441c12a7955addfb9f9d2afc65;hp=c1422d91cd36c345cfe216205b0e269a340d6d88;hpb=4fc8adcfec3da639da76e8314c9ccefe5bf9a045;p=firefly-linux-kernel-4.4.55.git 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;