diff options
author | Wolfram Sang <wsa-dev@sang-engineering.com> | 2016-08-11 17:03:54 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-08-24 07:52:16 -0400 |
commit | 1e55ef9689598787ed845a9970f238dfd473bf4e (patch) | |
tree | b7018a3421aebf10b8b07bca7a5dc812336b02b7 /drivers/media/usb/hackrf/hackrf.c | |
parent | de46bfab79a372ccec8d32947b5fab9a2a10e801 (diff) |
[media] media: usb: hackrf: hackrf: 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/hackrf/hackrf.c')
-rw-r--r-- | drivers/media/usb/hackrf/hackrf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hackrf.c index b1e229a44192..c2c8d12e9498 100644 --- a/drivers/media/usb/hackrf/hackrf.c +++ b/drivers/media/usb/hackrf/hackrf.c | |||
@@ -691,7 +691,6 @@ static int hackrf_alloc_urbs(struct hackrf_dev *dev, bool rcv) | |||
691 | dev_dbg(dev->dev, "alloc urb=%d\n", i); | 691 | dev_dbg(dev->dev, "alloc urb=%d\n", i); |
692 | dev->urb_list[i] = usb_alloc_urb(0, GFP_ATOMIC); | 692 | dev->urb_list[i] = usb_alloc_urb(0, GFP_ATOMIC); |
693 | if (!dev->urb_list[i]) { | 693 | if (!dev->urb_list[i]) { |
694 | dev_dbg(dev->dev, "failed\n"); | ||
695 | for (j = 0; j < i; j++) | 694 | for (j = 0; j < i; j++) |
696 | usb_free_urb(dev->urb_list[j]); | 695 | usb_free_urb(dev->urb_list[j]); |
697 | return -ENOMEM; | 696 | return -ENOMEM; |