diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 17:03:50 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-08-24 07:50:52 -0400 |
commit | ffcc82d8f56ec10caaaf9dd21aa3e275d7944e9d (patch) | |
tree | 2efa9d94bb44ff7ed211a84f9eefe28efbc9ccc0 /drivers/media | |
parent | 6dabae400b7fed5cbe50fce6fbe30f086182ff6b (diff) |
[media] media: usb: em28xx: em28xx-core: 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')
-rw-r--r-- | drivers/media/usb/em28xx/em28xx-core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/usb/em28xx/em28xx-core.c b/drivers/media/usb/em28xx/em28xx-core.c index 37456079f490..eebd5d7088d0 100644 --- a/drivers/media/usb/em28xx/em28xx-core.c +++ b/drivers/media/usb/em28xx/em28xx-core.c | |||
@@ -934,7 +934,6 @@ int em28xx_alloc_urbs(struct em28xx *dev, enum em28xx_mode mode, int xfer_bulk, | |||
934 | for (i = 0; i < usb_bufs->num_bufs; i++) { | 934 | for (i = 0; i < usb_bufs->num_bufs; i++) { |
935 | urb = usb_alloc_urb(usb_bufs->num_packets, GFP_KERNEL); | 935 | urb = usb_alloc_urb(usb_bufs->num_packets, GFP_KERNEL); |
936 | if (!urb) { | 936 | if (!urb) { |
937 | em28xx_err("cannot alloc usb_ctl.urb %i\n", i); | ||
938 | em28xx_uninit_usb_xfer(dev, mode); | 937 | em28xx_uninit_usb_xfer(dev, mode); |
939 | return -ENOMEM; | 938 | return -ENOMEM; |
940 | } | 939 | } |