media: dvb-frontends: rtl2832_sdr: 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:
Родитель
1328f7b928
Коммит
832fbe077c
|
@ -392,7 +392,6 @@ static int rtl2832_sdr_alloc_urbs(struct rtl2832_sdr_dev *dev)
|
||||||
dev_dbg(&pdev->dev, "alloc urb=%d\n", i);
|
dev_dbg(&pdev->dev, "alloc urb=%d\n", i);
|
||||||
dev->urb_list[i] = usb_alloc_urb(0, GFP_ATOMIC);
|
dev->urb_list[i] = usb_alloc_urb(0, GFP_ATOMIC);
|
||||||
if (!dev->urb_list[i]) {
|
if (!dev->urb_list[i]) {
|
||||||
dev_dbg(&pdev->dev, "failed\n");
|
|
||||||
for (j = 0; j < i; j++)
|
for (j = 0; j < i; j++)
|
||||||
usb_free_urb(dev->urb_list[j]);
|
usb_free_urb(dev->urb_list[j]);
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче