Re: [PATCH net-next] net: dsa: drop explicit NULL comparisons

From: Joe Damato

Date: Wed Aug 12 2026 - 14:41:15 EST


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@xxxxxxxxxx>
> ---
> net/dsa/dsa.c | 2 +-
> net/dsa/user.c | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Joe Damato <joe@xxxxxxx>