summaryrefslogtreecommitdiff
path: root/drivers/iio/adc/ad7923.c
diff options
context:
space:
mode:
authorBárbara Fernandes <barbara.fernandes@usp.br>2019-02-22 23:31:59 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2019-04-04 22:19:46 +0300
commit0a39ac29e0701f4957aabc285f5d1d7028094f94 (patch)
tree7b8a275e8a5a7b40386acf3a63f6a2d082366904 /drivers/iio/adc/ad7923.c
parent385c301cec0ba269322e8aaadb331c1a39a7f491 (diff)
downloadlinux-0a39ac29e0701f4957aabc285f5d1d7028094f94.tar.xz
iio:adc:ad7923: Rewrite comparison to NULL
Solves checkpath.pl's message: CHECK: Comparison to NULL could be written "!indio_dev" Signed-off-by: Bárbara Fernandes <barbara.fernandes@usp.br> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/adc/ad7923.c')
-rw-r--r--drivers/iio/adc/ad7923.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/adc/ad7923.c b/drivers/iio/adc/ad7923.c
index dbece44e26e4..cb7b854df00c 100644
--- a/drivers/iio/adc/ad7923.c
+++ b/drivers/iio/adc/ad7923.c
@@ -272,7 +272,7 @@ static int ad7923_probe(struct spi_device *spi)
int ret;
indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
- if (indio_dev == NULL)
+ if (!indio_dev)
return -ENOMEM;
st = iio_priv(indio_dev);