Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141780
b: refs/heads/master
c: 2961f24
h: refs/heads/master
v: v3
  • Loading branch information
Stoyan Gaydarov authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent a244895 commit 628a1af
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0773a5c07641ddef7f94636292921e12f2efab02
refs/heads/master: 2961f24f78f456a0a2d0dada56ee795232fe21b3
6 changes: 2 additions & 4 deletions trunk/drivers/staging/comedi/drivers.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,8 +544,7 @@ unsigned int comedi_buf_munge(struct comedi_async *async, unsigned int num_bytes

if (s->munge == NULL || (async->cmd.flags & CMDF_RAWDATA)) {
async->munge_count += num_bytes;
if ((int)(async->munge_count - async->buf_write_count) > 0)
BUG();
BUG_ON((int)(async->munge_count - async->buf_write_count) > 0);
return num_bytes;
}
/* don't munge partial samples */
Expand Down Expand Up @@ -575,8 +574,7 @@ unsigned int comedi_buf_munge(struct comedi_async *async, unsigned int num_bytes
async->munge_ptr %= async->prealloc_bufsz;
count += block_size;
}
if ((int)(async->munge_count - async->buf_write_count) > 0)
BUG();
BUG_ON((int)(async->munge_count - async->buf_write_count) > 0);
return count;
}

Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/staging/otus/wwrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,7 @@ void zfLnxUsbDataIn_callback(urb_t *urb)
buf->len = 0;
#endif

if ((buf->tail + urb->actual_length) > buf->end)
BUG();
BUG_ON((buf->tail + urb->actual_length) > buf->end);

skb_put(buf, urb->actual_length);

Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/staging/usbip/vhci_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/staging/wlan-ng/hfa384x_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -3176,8 +3176,7 @@ static void hfa384x_usbin_callback(struct urb *urb)
goto exit;

skb = hw->rx_urb_skb;
if (!skb || (skb->data != urb->transfer_buffer))
BUG();
BUG_ON(!skb || (skb->data != urb->transfer_buffer));

hw->rx_urb_skb = NULL;

Expand Down

0 comments on commit 628a1af

Please sign in to comment.