projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
385c301
)
iio:adc:ad7923: Rewrite comparison to NULL
author
Bárbara Fernandes
<barbara.fernandes@usp.br>
Fri, 22 Feb 2019 20:31:59 +0000
(17:31 -0300)
committer
Jonathan Cameron
<Jonathan.Cameron@huawei.com>
Thu, 4 Apr 2019 19:19:46 +0000
(20:19 +0100)
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>
drivers/iio/adc/ad7923.c
patch
|
blob
|
history
diff --git
a/drivers/iio/adc/ad7923.c
b/drivers/iio/adc/ad7923.c
index dbece44e26e4c28d63d47cd3bacac6e53172a2de..cb7b854df00c8d0331de6310cb9a56498429f843 100644
(file)
--- 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);