aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/usbip/vhci_sysfs.c
diff options
context:
space:
mode:
authorStoyan Gaydarov <stoyboyker@gmail.com>2009-03-10 00:10:27 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:54:26 -0700
commit2961f24f78f456a0a2d0dada56ee795232fe21b3 (patch)
tree9dd7147ed5076879d42bf70cb61865bc87f11313 /drivers/staging/usbip/vhci_sysfs.c
parentStaging: remove some pointless conditionals before kfree_skb() (diff)
downloadlinux-dev-2961f24f78f456a0a2d0dada56ee795232fe21b3.tar.xz
linux-dev-2961f24f78f456a0a2d0dada56ee795232fe21b3.zip
Staging: BUG to BUG_ON changes
Signed-off-by: Stoyan Gaydarov <stoyboyker@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/usbip/vhci_sysfs.c')
-rw-r--r--drivers/staging/usbip/vhci_sysfs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/usbip/vhci_sysfs.c b/drivers/staging/usbip/vhci_sysfs.c
index 0fd33a62d934..e4c71435aa11 100644
--- a/drivers/staging/usbip/vhci_sysfs.c
+++ b/drivers/staging/usbip/vhci_sysfs.c
@@ -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);