mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-13 15:47:30 +07:00
usb: class: usbtmc: 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
4675e961b8
commit
c3014d33f5
@ -1467,10 +1467,8 @@ static int usbtmc_probe(struct usb_interface *intf,
|
|||||||
if (data->iin_ep_present) {
|
if (data->iin_ep_present) {
|
||||||
/* allocate int urb */
|
/* allocate int urb */
|
||||||
data->iin_urb = usb_alloc_urb(0, GFP_KERNEL);
|
data->iin_urb = usb_alloc_urb(0, GFP_KERNEL);
|
||||||
if (!data->iin_urb) {
|
if (!data->iin_urb)
|
||||||
dev_err(&intf->dev, "Failed to allocate int urb\n");
|
|
||||||
goto error_register;
|
goto error_register;
|
||||||
}
|
|
||||||
|
|
||||||
/* will reference data in int urb */
|
/* will reference data in int urb */
|
||||||
kref_get(&data->kref);
|
kref_get(&data->kref);
|
||||||
|
Loading…
Reference in New Issue
Block a user