diff options
| author | Aldo Conte <aldocontelk@gmail.com> | 2026-05-22 14:34:15 +0200 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-05-31 11:01:48 +0100 |
| commit | 2e84e69c92233b601e3892887aec7c56fd4fe13b (patch) | |
| tree | 5f082179b75976ef15fdbb4a662877903ad3afbc /drivers/iio | |
| parent | 0e6a62767a1235b1b52e9faaf6c916a4c786a3df (diff) | |
| download | linux-next-2e84e69c92233b601e3892887aec7c56fd4fe13b.tar.gz linux-next-2e84e69c92233b601e3892887aec7c56fd4fe13b.zip | |
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>
Diffstat (limited to 'drivers/iio')
| -rw-r--r-- | drivers/iio/light/tcs3472.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
