diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 23:03:53 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-08-24 13:51:57 +0200 |
commit | de46bfab79a372ccec8d32947b5fab9a2a10e801 (patch) | |
tree | fca8cd937080c76b06bd31d68ae271dcbf449e63 /drivers/media/usb/gspca/konica.c | |
parent | [media] media: usb: gspca: gspca: don't print error when allocating urb fails (diff) | |
download | linux-de46bfab79a372ccec8d32947b5fab9a2a10e801.tar.xz linux-de46bfab79a372ccec8d32947b5fab9a2a10e801.zip |
[media] media: usb: gspca: konica: 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/konica.c')
-rw-r--r-- | drivers/media/usb/gspca/konica.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/usb/gspca/konica.c b/drivers/media/usb/gspca/konica.c index 0712b1bc90b4..40aaaa9c5f30 100644 --- a/drivers/media/usb/gspca/konica.c +++ b/drivers/media/usb/gspca/konica.c @@ -208,10 +208,8 @@ static int sd_start(struct gspca_dev *gspca_dev) packet_size = le16_to_cpu(alt->endpoint[i].desc.wMaxPacketSize); 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, packet_size * SD_NPKT, |