Staging: BUG to BUG_ON changes

Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Stoyan Gaydarov
2009-03-10 00:10:27 -05:00
committed by Greg Kroah-Hartman
parent 0773a5c076
commit 2961f24f78
4 changed files with 5 additions and 10 deletions

View File

@@ -31,8 +31,7 @@ static ssize_t show_status(struct device *dev, struct device_attribute *attr,
char *s = out;
int i = 0;
if (!the_controller || !out)
BUG();
BUG_ON(!the_controller || !out);
spin_lock(&the_controller->lock);