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:
859ba46
)
Staging: iio: ad7192: Remove unnecessary NULL test
author
Shivani Bhardwaj
<
[email protected]
>
Fri, 16 Oct 2015 13:42:06 +0000
(19:12 +0530)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sat, 17 Oct 2015 05:48:19 +0000
(22:48 -0700)
The variable pdata is already NULL tested before so, any further tests
should be removed.
Signed-off-by: Shivani Bhardwaj <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/iio/adc/ad7192.c
patch
|
blob
|
history
diff --git
a/drivers/staging/iio/adc/ad7192.c
b/drivers/staging/iio/adc/ad7192.c
index bb760963aa2405ce6ac5a8dc1c4b698ff3fde632..5b87049cd3f96345462607b13f65c088e8b0b860 100644
(file)
--- a/
drivers/staging/iio/adc/ad7192.c
+++ b/
drivers/staging/iio/adc/ad7192.c
@@
-639,7
+639,7
@@
static int ad7192_probe(struct spi_device *spi)
voltage_uv = regulator_get_voltage(st->reg);
}
- if (pdata
&& pdata
->vref_mv)
+ if (pdata->vref_mv)
st->int_vref_mv = pdata->vref_mv;
else if (voltage_uv)
st->int_vref_mv = voltage_uv / 1000;