diff options
Diffstat (limited to 'drivers/media/usb/gspca/sq930x.c')
-rw-r--r-- | drivers/media/usb/gspca/sq930x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/usb/gspca/sq930x.c b/drivers/media/usb/gspca/sq930x.c index 7e8748b31e85..b10d0821111c 100644 --- a/drivers/media/usb/gspca/sq930x.c +++ b/drivers/media/usb/gspca/sq930x.c | |||
@@ -541,13 +541,11 @@ static void ucbus_write(struct gspca_dev *gspca_dev, | |||
541 | if (gspca_dev->usb_err < 0) | 541 | if (gspca_dev->usb_err < 0) |
542 | return; | 542 | return; |
543 | 543 | ||
544 | #ifdef GSPCA_DEBUG | ||
545 | if ((batchsize - 1) * 3 > USB_BUF_SZ) { | 544 | if ((batchsize - 1) * 3 > USB_BUF_SZ) { |
546 | pr_err("Bug: usb_buf overflow\n"); | 545 | PERR("Bug: usb_buf overflow\n"); |
547 | gspca_dev->usb_err = -ENOMEM; | 546 | gspca_dev->usb_err = -ENOMEM; |
548 | return; | 547 | return; |
549 | } | 548 | } |
550 | #endif | ||
551 | 549 | ||
552 | for (;;) { | 550 | for (;;) { |
553 | len = ncmds; | 551 | len = ncmds; |