lkml.org 
[lkml]   [2009]   [Mar]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 02/25] [staging] BUG to BUG_ON changes
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);


\
 
 \ /
  Last update: 2009-03-10 11:19    [W:0.891 / U:0.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site