summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/gspca/konica.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-11 23:03:53 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-24 13:51:57 +0200
commitde46bfab79a372ccec8d32947b5fab9a2a10e801 (patch)
treefca8cd937080c76b06bd31d68ae271dcbf449e63 /drivers/media/usb/gspca/konica.c
parent[media] media: usb: gspca: gspca: don't print error when allocating urb fails (diff)
downloadlinux-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.c4
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,