From: Joe Damato <joe@dama.to>
To: Kai Kuang <kuangkai@kylinos.cn>
Cc: netdev@vger.kernel.org, andrew@lunn.ch, olteanv@gmail.com,
f.fainelli@gmail.com, linux-kernel@vger.kernel.org,
kk47yx@gmail.com
Subject: Re: [PATCH net-next] net: dsa: drop explicit NULL comparisons
Date: Wed, 12 Aug 2026 11:40:47 -0700 [thread overview]
Message-ID: <any+L0W4g9I+MrZ1@devvm20253.cco0.facebook.com> (raw)
In-Reply-To: <20260812060644.210997-1-kuangkai@kylinos.cn>
On Wed, Aug 12, 2026 at 02:06:44PM +0800, Kai Kuang wrote:
> Replace explicit NULL comparisons with the boolean form to follow
> the kernel coding style:
>
> dev->class != NULL -> dev->class
> user_dev == NULL -> !user_dev
>
> No functional changes intended.
>
> Signed-off-by: Kai Kuang <kuangkai@kylinos.cn>
> ---
> net/dsa/dsa.c | 2 +-
> net/dsa/user.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Joe Damato <joe@dama.to>
next prev parent reply other threads:[~2026-08-12 18:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-12 6:06 [PATCH net-next] net: dsa: drop explicit NULL comparisons Kai Kuang
2026-08-12 16:24 ` Andrew Lunn
2026-08-12 18:40 ` Joe Damato [this message]
2026-08-14 21:20 ` patchwork-bot+netdevbpf
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=any+L0W4g9I+MrZ1@devvm20253.cco0.facebook.com \
--to=joe@dama.to \
--cc=andrew@lunn.ch \
--cc=f.fainelli@gmail.com \
--cc=kk47yx@gmail.com \
--cc=kuangkai@kylinos.cn \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
/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