From: Johan Hovold <johan@kernel.org>
To: "Uwe Kleine-König" <uwe@kleine-koenig.org>
Cc: linux-usb@vger.kernel.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] USB: serial: drop bogus to_usb_serial_port() checks
Date: Tue, 9 Feb 2021 13:16:34 +0100 [thread overview]
Message-ID: <YCJ9IgwSLyNmPq5B@hovoldconsulting.com> (raw)
In-Reply-To: <9306d82c-d030-1243-1079-1ff5339f6cc5@kleine-koenig.org>
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
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@kernel.org>
>
> Reviewed-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Thanks Uwe and Greg for reviewing. Now applied.
Johan
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
prev parent reply other threads:[~2021-02-09 12:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-08 15:48 [PATCH] USB: serial: drop bogus to_usb_serial_port() checks Johan Hovold
2021-02-08 16:43 ` Greg Kroah-Hartman
2021-02-08 17:06 ` Uwe Kleine-König
2021-02-09 12:16 ` Johan Hovold [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YCJ9IgwSLyNmPq5B@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=uwe@kleine-koenig.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).