From: Matt Ranostay Date: Thu, 16 Jun 2016 01:47:02 +0000 (-0700) Subject: iio: proximity: as3935: remove redundant zeroing of tune_cap X-Git-Tag: v4.8-rc1~193^2~2^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d462b85e727d482e6fa95252b909f3fce6851e0;p=platform%2Fkernel%2Flinux-exynos.git 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 Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/proximity/as3935.c b/drivers/iio/proximity/as3935.c index a9d5847..0566cb4 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);