Skip to content

Commit

Permalink
[media] stk1160: Replace BUG_ON with WARN_ON
Browse files Browse the repository at this point in the history
This situation is not even an error condition so it's stupid to BUG_ON.
Learn the lesson:
http://permalink.gmane.org/gmane.linux.kernel/1347333

Signed-off-by: Ezequiel Garcia <elezegarcia@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Ezequiel Garcia authored and Mauro Carvalho Chehab committed Jan 1, 2013
1 parent b858c33 commit e003ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/usb/stk1160/stk1160-video.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ struct stk1160_buffer *stk1160_next_buffer(struct stk1160 *dev)
unsigned long flags = 0;

/* Current buffer must be NULL when this functions gets called */
BUG_ON(dev->isoc_ctl.buf);
WARN_ON(dev->isoc_ctl.buf);

spin_lock_irqsave(&dev->buf_lock, flags);
if (!list_empty(&dev->avail_bufs)) {
Expand Down

0 comments on commit e003ae3

Please sign in to comment.