[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <9306d82c-d030-1243-1079-1ff5339f6cc5@kleine-koenig.org>
Date: Mon, 8 Feb 2021 18:06:38 +0100
From: Uwe Kleine-König <uwe@...ine-koenig.org>
To: Johan Hovold <johan@...nel.org>, linux-usb@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] USB: serial: drop bogus to_usb_serial_port() checks
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@...nel.org>
Reviewed-by: Uwe Kleine-König <uwe@...ine-koenig.org>
Thanks
Uwe
Download attachment "OpenPGP_signature" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists