USB: gadget: fsl-udc: drop misleading unbind sanity check
authorJohan Hovold <johan@kernel.org>
Thu, 2 Jul 2026 14:15:36 +0000 (16:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Jul 2026 05:10:11 +0000 (07:10 +0200)
commitf05847a216a74e1f2387169a336edbc198960016
tree52436ed5e0ec6c5a18ffef0fe45ab4f6c1fba96c
parentc4dd150fceab281496acb3a643ae712aacb74864
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>
drivers/usb/gadget/udc/fsl_udc_core.c