OSDN Git Service

[media] usb drivers: use BUG_ON() instead of if () BUG
[uclinux-h8/linux.git] / drivers / media / usb / cx231xx / cx231xx-417.c
index 855a708..47a98a2 100644 (file)
@@ -1249,8 +1249,7 @@ static void free_buffer(struct videobuf_queue *vq, struct cx231xx_buffer *buf)
        struct cx231xx *dev = fh->dev;
        unsigned long flags = 0;
 
-       if (in_interrupt())
-               BUG();
+       BUG_ON(in_interrupt());
 
        spin_lock_irqsave(&dev->video_mode.slock, flags);
        if (dev->USE_ISO) {