[media] usb drivers: use BUG_ON() instead of if () BUG
[deliverable/linux.git] / drivers / media / usb / cx231xx / cx231xx-video.c
index af44f2d1c0a1a28e2d13c2bbacdddccb0b6a2cad..c6ff8968286a6f9e07676f38b47bac9b69b51661 100644 (file)
@@ -749,8 +749,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());
 
        /* We used to wait for the buffer to finish here, but this didn't work
           because, as we were keeping the state as VIDEOBUF_QUEUED,
This page took 0.026203 seconds and 5 git commands to generate.