mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-03 17:30:23 -05:00
usb: class: usbtmc: don't print on ENOMEM
All kmalloc-based functions print enough information on failures. Signed-off-by: Wolfram Sang <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
52879bb190
commit
f6b6f8a09f
1 changed files with 1 additions and 3 deletions
|
|
@ -1476,10 +1476,8 @@ static int usbtmc_probe(struct usb_interface *intf,
|
|||
/* allocate buffer for interrupt in */
|
||||
data->iin_buffer = kmalloc(data->iin_wMaxPacketSize,
|
||||
GFP_KERNEL);
|
||||
if (!data->iin_buffer) {
|
||||
dev_err(&intf->dev, "Failed to allocate int buf\n");
|
||||
if (!data->iin_buffer)
|
||||
goto error_register;
|
||||
}
|
||||
|
||||
/* fill interrupt urb */
|
||||
usb_fill_int_urb(data->iin_urb, data->usb_dev,
|
||||
|
|
|
|||
Loading…
Reference in a new issue