summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/media/usb/zr364xx/zr364xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/media/usb/zr364xx/zr364xx.c')
-rw-r--r--kernel/drivers/media/usb/zr364xx/zr364xx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/drivers/media/usb/zr364xx/zr364xx.c b/kernel/drivers/media/usb/zr364xx/zr364xx.c
index ca850316d..7433ba5c4 100644
--- a/kernel/drivers/media/usb/zr364xx/zr364xx.c
+++ b/kernel/drivers/media/usb/zr364xx/zr364xx.c
@@ -377,8 +377,7 @@ static void free_buffer(struct videobuf_queue *vq, struct zr364xx_buffer *buf)
{
_DBG("%s\n", __func__);
- if (in_interrupt())
- BUG();
+ BUG_ON(in_interrupt());
videobuf_vmalloc_free(&buf->vb);
buf->vb.state = VIDEOBUF_NEEDS_INIT;