mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-16 05:17:28 +07:00
media: usb: airspy: airspy: 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
5414c2d6af
commit
05476e6469
@ -426,7 +426,6 @@ static int airspy_alloc_urbs(struct airspy *s)
|
||||
dev_dbg(s->dev, "alloc urb=%d\n", i);
|
||||
s->urb_list[i] = usb_alloc_urb(0, GFP_ATOMIC);
|
||||
if (!s->urb_list[i]) {
|
||||
dev_dbg(s->dev, "failed\n");
|
||||
for (j = 0; j < i; j++)
|
||||
usb_free_urb(s->urb_list[j]);
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user