From: Aldo Conte Date: Fri, 22 May 2026 12:34:15 +0000 (+0200) Subject: iio: tcs3472: use ! instead of explicit NULL check X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e84e69c92233b601e3892887aec7c56fd4fe13b;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Aldo Conte Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/light/tcs3472.c b/drivers/iio/light/tcs3472.c index 8956ed058a20..36d3c106e70d 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);