summaryrefslogtreecommitdiffstats
path: root/drivers/staging/otus/wwrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/otus/wwrap.c')
-rw-r--r--drivers/staging/otus/wwrap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/otus/wwrap.c b/drivers/staging/otus/wwrap.c
index a0b1e0b..4db8f6e 100644
--- a/drivers/staging/otus/wwrap.c
+++ b/drivers/staging/otus/wwrap.c
@@ -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);
OpenPOWER on IntegriCloud