iio: tcs3472: use ! instead of explicit NULL check

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@gmail.com>
Signed-off-by: Aldo Conte <aldocontelk@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
Aldo Conte 2026-05-22 14:34:15 +02:00 committed by Jonathan Cameron
parent 0e6a62767a
commit 2e84e69c92

View File

@ -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);