mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
USB: gadget: fsl-udc: drop misleading unbind sanity check
The UDC pointer is set on successful probe and will never be NULL when the driver is later unbound so drop the misleading sanity check (and confused error message). Signed-off-by: Johan Hovold <johan@kernel.org> Link: https://patch.msgid.link/20260702141536.90887-5-johan@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c4dd150fce
commit
f05847a216
|
|
@ -2539,12 +2539,6 @@ static void fsl_udc_remove(struct platform_device *pdev)
|
|||
|
||||
DECLARE_COMPLETION_ONSTACK(done);
|
||||
|
||||
if (!udc_controller) {
|
||||
dev_err(&pdev->dev,
|
||||
"Driver still in use but removing anyhow\n");
|
||||
return;
|
||||
}
|
||||
|
||||
udc_controller->done = &done;
|
||||
usb_del_gadget_udc(&udc_controller->gadget);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user