diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 18:03:51 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-08-24 08:51:13 -0300 |
commit | 60e3699946481eb10d7d8be1f28029649fc2c208 (patch) | |
tree | 9683760538ed9c8a0001f030ff4437c08dd3be60 /drivers/media/usb/gspca/benq.c | |
parent | ffcc82d8f56ec10caaaf9dd21aa3e275d7944e9d (diff) |
[media] media: usb: gspca: benq: don't print error when allocating urb fails
kmalloc will print enough information in case of failure.
Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/gspca/benq.c')
-rw-r--r-- | drivers/media/usb/gspca/benq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/usb/gspca/benq.c b/drivers/media/usb/gspca/benq.c index 790baed33963..5fa67b78ad49 100644 --- a/drivers/media/usb/gspca/benq.c +++ b/drivers/media/usb/gspca/benq.c @@ -95,10 +95,8 @@ static int sd_start(struct gspca_dev *gspca_dev) #define SD_NPKT 32 for (n = 0; n < 4; n++) { urb = usb_alloc_urb(SD_NPKT, GFP_KERNEL); - if (!urb) { - pr_err("usb_alloc_urb failed\n"); + if (!urb) return -ENOMEM; - } gspca_dev->urb[n] = urb; urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev, SD_PKT_SZ * SD_NPKT, |