diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 21:03:53 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-08-24 11:51:57 (GMT) |
commit | de46bfab79a372ccec8d32947b5fab9a2a10e801 (patch) | |
tree | fca8cd937080c76b06bd31d68ae271dcbf449e63 | |
parent | 452b53f7f844d3fe9e9484fa16f7ebbe1e9b8c27 (diff) | |
download | linux-de46bfab79a372ccec8d32947b5fab9a2a10e801.tar.xz |
[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>
-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 0712b1b..40aaaa9 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, |