Thread (22 messages) flat view 22 messages, 5 authors, 2026-06-17

Re: [PATCH 08/11] iio: hid-sensor-magn-3d: use ! instead of explicit NULL check

From: Joshua Crofts <joshua.crofts1@gmail.com>
Date: 2026-06-16 11:01:19
Also in: linux-iio, lkml

On Tue, 16 Jun 2026 15:56:13 +0530
Sanjay Chitroda [off-list ref] wrote:
From: Sanjay Chitroda <redacted>

Replace 'if (indio_dev == NULL)' with 'if (!indio_dev)' in to follow
the preferred kernel style.

No functional change.

Signed-off-by: Sanjay Chitroda <redacted>
---
Couldn't all of these null check patches be squashed into one,
considering these are all the same logical change and affect
HID drivers? Surely this is code churn a bit.

Same goes for the parentheses alignment patches.

--
Kind regards

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