]> git.ipfire.org Git - thirdparty/linux.git/commit
iio: tcs3472: use ! instead of explicit NULL check
authorAldo Conte <aldocontelk@gmail.com>
Fri, 22 May 2026 12:34:15 +0000 (14:34 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 10:01:48 +0000 (11:01 +0100)
commit2e84e69c92233b601e3892887aec7c56fd4fe13b
tree5f082179b75976ef15fdbb4a662877903ad3afbc
parent0e6a62767a1235b1b52e9faaf6c916a4c786a3df
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>
drivers/iio/light/tcs3472.c