mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 16:11:38 +00:00
USB: cdc-acm: drop redundant driver-data reset
There's no need to clear the interface driver data on failed probe (and driver core will clear it anyway). Acked-by: Oliver Neukum <oneukum@suse.com> Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20210322155318.9837-5-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8111a8cbd5
commit
dda6faaa2b
@ -1528,7 +1528,6 @@ alloc_fail6:
|
||||
}
|
||||
device_remove_file(&acm->control->dev, &dev_attr_bmCapabilities);
|
||||
alloc_fail5:
|
||||
usb_set_intfdata(intf, NULL);
|
||||
for (i = 0; i < ACM_NW; i++)
|
||||
usb_free_urb(acm->wb[i].urb);
|
||||
alloc_fail4:
|
||||
|
Loading…
Reference in New Issue
Block a user