diff options
author | Matt Ranostay <mranostay@gmail.com> | 2016-06-15 18:47:02 -0700 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-06-27 20:59:12 +0100 |
commit | 4d462b85e727d482e6fa95252b909f3fce6851e0 (patch) | |
tree | b6a48cbd684057dc4059b34bad368e8bd28e70dc /drivers/iio/proximity | |
parent | 765550e4d98d8f5931a3863781acb7c6b995161c (diff) | |
download | blackbird-op-linux-4d462b85e727d482e6fa95252b909f3fce6851e0.tar.gz blackbird-op-linux-4d462b85e727d482e6fa95252b909f3fce6851e0.zip |
iio: proximity: as3935: remove redundant zeroing of tune_cap
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>
Diffstat (limited to 'drivers/iio/proximity')
-rw-r--r-- | drivers/iio/proximity/as3935.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/proximity/as3935.c b/drivers/iio/proximity/as3935.c index a9d58472e304..0566cb4cd395 100644 --- 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); |