Messages in this thread | | | Subject | Re: [PATCH] USB: serial: drop bogus to_usb_serial_port() checks | From | Uwe Kleine-König <> | Date | Mon, 8 Feb 2021 18:06:38 +0100 |
| |
On 2/8/21 4:48 PM, Johan Hovold wrote: > The to_usb_serial_port() macro is implemented using container_of() so > there's no need to check for NULL. > > Note that neither bus match() or probe() is ever called with a NULL > struct device pointer so the checks weren't just misplaced. > > Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Thanks Uwe
[unhandled content-type:application/pgp-signature] | |