mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-28 12:25:31 +00:00
usb: usb-skeleton: 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
792f94f547
commit
2bd07d3c21
@ -532,11 +532,8 @@ static int skel_probe(struct usb_interface *interface,
|
||||
goto error;
|
||||
}
|
||||
dev->bulk_in_urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||
if (!dev->bulk_in_urb) {
|
||||
dev_err(&interface->dev,
|
||||
"Could not allocate bulk_in_urb\n");
|
||||
if (!dev->bulk_in_urb)
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
||||
if (!dev->bulk_out_endpointAddr &&
|
||||
|
Loading…
Reference in New Issue
Block a user