[PATCH v3 4/8] iio: tcs3472: use ! instead of explicit NULL check

From: Aldo Conte

Date: Fri May 22 2026 - 09:06:44 EST


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

No functional change.

Suggested-by: Joshua Crofts <joshua.crofts1@xxxxxxxxx>
Signed-off-by: Aldo Conte <aldocontelk@xxxxxxxxx>
---
v3:
- New patch.

drivers/iio/light/tcs3472.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/light/tcs3472.c b/drivers/iio/light/tcs3472.c
index b31714040a02..d7b5805108f6 100644
--- a/drivers/iio/light/tcs3472.c
+++ b/drivers/iio/light/tcs3472.c
@@ -452,7 +452,7 @@ static int tcs3472_probe(struct i2c_client *client)
int ret;

indio_dev = devm_iio_device_alloc(&client->dev, sizeof(*data));
- if (indio_dev == NULL)
+ if (!indio_dev)
return -ENOMEM;

data = iio_priv(indio_dev);
--
2.54.0