Thread (4 messages) flat view 4 messages, 4 authors, 4d ago

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

From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-08-12 16:24:47
Also in: lkml

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 <redacted>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>

    Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help