summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-11 23:03:55 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-30 19:13:54 +0200
commit908316624fba7be9fc3ff25ab457a9d1b194b404 (patch)
tree18ecbe142811839bccb0e4115fb47a1dcd662e93 /drivers
parent604f517e46b1c04185e18d6ec1bc224b4032c5c8 (diff)
downloadlinux-908316624fba7be9fc3ff25ab457a9d1b194b404.tar.gz
linux-908316624fba7be9fc3ff25ab457a9d1b194b404.tar.bz2
linux-908316624fba7be9fc3ff25ab457a9d1b194b404.zip
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>
Diffstat (limited to 'drivers')
-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)
buf->dev = dev;
urb = usb_alloc_urb(0, GFP_KERNEL);
- if (!urb) {
- v4l2_err(&dev->v4l2_dev, "cannot allocate urb\n");
+ if (!urb)
goto exit_urb;
- }
buf->urb = urb;
mem = usb_alloc_coherent(dev->udev, dev->bulk_in_size, GFP_KERNEL,