Re: [PATCH 02/25] [staging] BUG to BUG_ON changes

From: Alexey Dobriyan
Date: Tue Mar 10 2009 - 06:15:44 EST


On Tue, Mar 10, 2009 at 12:10:27AM -0500, Stoyan Gaydarov wrote:
> --- 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);

Should be deleted partially.

> spin_lock(&the_controller->lock);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/