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:
committed by
Greg Kroah-Hartman
parent
0773a5c076
commit
2961f24f78
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user