Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Matt Ranostay and committed by
Jonathan Cameron
4d462b85 765550e4

-1
-1
drivers/iio/proximity/as3935.c
··· 345 345 346 346 st = iio_priv(indio_dev); 347 347 st->spi = spi; 348 - st->tune_cap = 0; 349 348 350 349 spi_set_drvdata(spi, indio_dev); 351 350 mutex_init(&st->lock);