mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
usb: misc: adutux: 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
c3014d33f5
commit
71574a558d
1 changed files with 2 additions and 6 deletions
|
@ -744,20 +744,16 @@ static int adu_probe(struct usb_interface *interface,
|
|||
memset(dev->interrupt_in_buffer, 'i', in_end_size);
|
||||
|
||||
dev->interrupt_in_urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||
if (!dev->interrupt_in_urb) {
|
||||
dev_err(&interface->dev, "Couldn't allocate interrupt_in_urb\n");
|
||||
if (!dev->interrupt_in_urb)
|
||||
goto error;
|
||||
}
|
||||
dev->interrupt_out_buffer = kmalloc(out_end_size, GFP_KERNEL);
|
||||
if (!dev->interrupt_out_buffer) {
|
||||
dev_err(&interface->dev, "Couldn't allocate interrupt_out_buffer\n");
|
||||
goto error;
|
||||
}
|
||||
dev->interrupt_out_urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||
if (!dev->interrupt_out_urb) {
|
||||
dev_err(&interface->dev, "Couldn't allocate interrupt_out_urb\n");
|
||||
if (!dev->interrupt_out_urb)
|
||||
goto error;
|
||||
}
|
||||
|
||||
if (!usb_string(udev, udev->descriptor.iSerialNumber, dev->serial_number,
|
||||
sizeof(dev->serial_number))) {
|
||||
|
|
Loading…
Reference in a new issue