Skip to contentSkip to conversation

fs/hfsplus: replace if/BUG by BUG_ON

PATCH New Fabian Frederick 1 participant 1 message Mar 9, 2015 Hfsplus filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/hfsplus: replace if/BUG by BUG_ON

---
 fs/hfsplus/bfind.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
fs/hfsplus/bfind.c +1 -3
index c1422d9..528e38b 100644
@@ -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;
Signature · 1 line
1.9.1