Commit 7ce844a2 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

fs/hfsplus: replace if/BUG by BUG_ON

parent 1ad8d63d
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -118,9 +118,7 @@ int __hfs_brec_find(struct hfs_bnode *bnode, struct hfs_find_data *fd,
	int b, e;
	int b, e;
	int res;
	int res;


	if (!rec_found)
	BUG_ON(!rec_found);
		BUG();

	b = 0;
	b = 0;
	e = bnode->num_recs - 1;
	e = bnode->num_recs - 1;
	res = -ENOENT;
	res = -ENOENT;