mirror of
https://github.com/torvalds/linux
synced 2024-09-30 16:29:47 +00:00
media: usb: gspca: gspca: 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
37fac9692f
commit
b2a057b053
|
@ -795,10 +795,8 @@ static int create_urbs(struct gspca_dev *gspca_dev,
|
|||
|
||||
for (n = 0; n < nurbs; n++) {
|
||||
urb = usb_alloc_urb(npkt, GFP_KERNEL);
|
||||
if (!urb) {
|
||||
pr_err("usb_alloc_urb failed\n");
|
||||
if (!urb)
|
||||
return -ENOMEM;
|
||||
}
|
||||
gspca_dev->urb[n] = urb;
|
||||
urb->transfer_buffer = usb_alloc_coherent(gspca_dev->dev,
|
||||
bsize,
|
||||
|
|
Loading…
Reference in a new issue