aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-11 17:03:55 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-30 13:13:54 -0400
commit908316624fba7be9fc3ff25ab457a9d1b194b404 (patch)
tree18ecbe142811839bccb0e4115fb47a1dcd662e93
parent604f517e46b1c04185e18d6ec1bc224b4032c5c8 (diff)
media: usb: hdpvr: hdpvr-video: 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/media/usb/hdpvr/hdpvr-video.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/usb/hdpvr/hdpvr-video.c b/drivers/media/usb/hdpvr/hdpvr-video.c
index 2a3a8b470555..6d43d75493ea 100644
--- a/drivers/media/usb/hdpvr/hdpvr-video.c
+++ b/drivers/media/usb/hdpvr/hdpvr-video.c
@@ -155,10 +155,8 @@ int hdpvr_alloc_buffers(struct hdpvr_device *dev, uint count)
155 buf->dev = dev; 155 buf->dev = dev;
156 156
157 urb = usb_alloc_urb(0, GFP_KERNEL); 157 urb = usb_alloc_urb(0, GFP_KERNEL);
158 if (!urb) { 158 if (!urb)
159 v4l2_err(&dev->v4l2_dev, "cannot allocate urb\n");
160 goto exit_urb; 159 goto exit_urb;
161 }
162 buf->urb = urb; 160 buf->urb = urb;
163 161
164 mem = usb_alloc_coherent(dev->udev, dev->bulk_in_size, GFP_KERNEL, 162 mem = usb_alloc_coherent(dev->udev, dev->bulk_in_size, GFP_KERNEL,