Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d462b85 authored by Matt Ranostay's avatar Matt Ranostay Committed by Jonathan Cameron
Browse files

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: default avatarMatt Ranostay <mranostay@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 765550e4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);