projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
765550e
)
iio: proximity: as3935: remove redundant zeroing of tune_cap
author
Matt Ranostay
<mranostay@gmail.com>
Thu, 16 Jun 2016 01:47:02 +0000
(18:47 -0700)
committer
Jonathan Cameron
<jic23@kernel.org>
Mon, 27 Jun 2016 19:59:12 +0000
(20:59 +0100)
This is redundant as the containing stucture is allocated as part of
iio_device_alloc using kzalloc and hence is already 0.
Signed-off-by: Matt Ranostay <mranostay@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/proximity/as3935.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/proximity/as3935.c
b/drivers/iio/proximity/as3935.c
index a9d58472e3043ceb2535586816e2c7f0ead2468c..0566cb4cd39532874c83178c5c7495248b603f10 100644
(file)
--- a/
drivers/iio/proximity/as3935.c
+++ b/
drivers/iio/proximity/as3935.c
@@
-345,7
+345,6
@@
static int as3935_probe(struct spi_device *spi)
st = iio_priv(indio_dev);
st->spi = spi;
- st->tune_cap = 0;
spi_set_drvdata(spi, indio_dev);
mutex_init(&st->lock);