diff options
author | Nuno Sa <[email protected]> | 2023-12-07 13:39:30 +0100 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2023-12-10 11:41:01 +0000 |
commit | 8bdfa4a2fecf4d54b9157b1294970e7ff242f042 (patch) | |
tree | 3abc343a88be18b9bb8a6c719b68d61dba56cf50 | |
parent | 6dd3fa9fcc66cb71834dc2e0a222324af0d8b95d (diff) |
iio: adc: ad9467: use the more common !val NULL check
Check !val instead of directing checking for NULL (val == NULL).
No functional changes intended.
Reviewed-by: David Lechner <[email protected]>
Signed-off-by: Nuno Sa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
-rw-r--r-- | drivers/iio/adc/ad9467.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/ad9467.c b/drivers/iio/adc/ad9467.c index c5ed62cc8646..6581fce4ba95 100644 --- a/drivers/iio/adc/ad9467.c +++ b/drivers/iio/adc/ad9467.c @@ -158,7 +158,7 @@ static int ad9467_reg_access(struct adi_axi_adc_conv *conv, unsigned int reg, struct spi_device *spi = st->spi; int ret; - if (readval == NULL) { + if (!readval) { guard(mutex)(&st->lock); ret = ad9467_spi_write(spi, reg, writeval); if (ret) |