projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7e426d
)
staging: iio: resolver: fix comparison to NULL
author
Eva Rachel Retuya
<
[email protected]
>
Thu, 18 Feb 2016 10:59:39 +0000
(18:59 +0800)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sat, 20 Feb 2016 22:46:35 +0000
(14:46 -0800)
Remove comparison of spi->dev.platform_data to NULL by replacing it with
'!spi->dev.platform_data' as checkpatch suggested:
CHECK: Comparison to NULL could be written "!spi->dev.platform_data"
Signed-off-by: Eva Rachel Retuya <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/iio/resolver/ad2s1210.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/resolver/ad2s1210.c
b/drivers/staging/iio/resolver/ad2s1210.c
index 477df95af859ccbfc9ed15277cd80a2cd77d642b..6b992634f009da29d84cd60d97f1c590803eaf0f 100644
(file)
--- a/
drivers/staging/iio/resolver/ad2s1210.c
+++ b/
drivers/staging/iio/resolver/ad2s1210.c
@@
-675,7
+675,7
@@
static int ad2s1210_probe(struct spi_device *spi)
struct ad2s1210_state *st;
int ret;
- if (
spi->dev.platform_data == NULL
)
+ if (
!spi->dev.platform_data
)
return -EINVAL;
indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));