mirror of https://gitee.com/openkylin/linux.git
media: usb: pwc: pwc-if: 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
ec691d0a8b
commit
0ecf16674d
|
@ -410,7 +410,6 @@ static int pwc_isoc_init(struct pwc_device *pdev)
|
|||
for (i = 0; i < MAX_ISO_BUFS; i++) {
|
||||
urb = usb_alloc_urb(ISO_FRAMES_PER_DESC, GFP_KERNEL);
|
||||
if (urb == NULL) {
|
||||
PWC_ERROR("Failed to allocate urb %d\n", i);
|
||||
pwc_isoc_cleanup(pdev);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue