mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 06:02:38 +00:00
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e8407a5995
commit
604f517e46
@ -691,7 +691,6 @@ static int hackrf_alloc_urbs(struct hackrf_dev *dev, bool rcv)
|
||||
dev_dbg(dev->dev, "alloc urb=%d\n", i);
|
||||
dev->urb_list[i] = usb_alloc_urb(0, GFP_ATOMIC);
|
||||
if (!dev->urb_list[i]) {
|
||||
dev_dbg(dev->dev, "failed\n");
|
||||
for (j = 0; j < i; j++)
|
||||
usb_free_urb(dev->urb_list[j]);
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user