usb: class: usbtmc: don't print on ENOMEM
All kmalloc-based functions print enough information on failures. Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
52879bb190
Коммит
f6b6f8a09f
|
@ -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,
|
||||
|
|
Загрузка…
Ссылка в новой задаче