Re: [PATCH] USB: serial: drop bogus to_usb_serial_port() checks

From: Johan Hovold
Date: Tue Feb 09 2021 - 07:17:17 EST


On Mon, Feb 08, 2021 at 06:06:38PM +0100, Uwe Kleine-König wrote:
> 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@xxxxxxxxxx>
>
> Reviewed-by: Uwe Kleine-König <uwe@xxxxxxxxxxxxxxxxx>

Thanks Uwe and Greg for reviewing. Now applied.

Johan

Attachment: signature.asc
Description: PGP signature