mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-08 18:42:53 +00:00
media: usb: usbvision: usbvision-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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a438612953
commit
44d6d61220
@ -2303,11 +2303,8 @@ int usbvision_init_isoc(struct usb_usbvision *usbvision)
|
||||
struct urb *urb;
|
||||
|
||||
urb = usb_alloc_urb(USBVISION_URB_FRAMES, GFP_KERNEL);
|
||||
if (urb == NULL) {
|
||||
dev_err(&usbvision->dev->dev,
|
||||
"%s: usb_alloc_urb() failed\n", __func__);
|
||||
if (urb == NULL)
|
||||
return -ENOMEM;
|
||||
}
|
||||
usbvision->sbuf[buf_idx].urb = urb;
|
||||
usbvision->sbuf[buf_idx].data =
|
||||
usb_alloc_coherent(usbvision->dev,
|
||||
|
Loading…
Reference in New Issue
Block a user