iio: proximity: as3935: remove redundant zeroing of tune_cap
authorMatt Ranostay <mranostay@gmail.com>
Thu, 16 Jun 2016 01:47:02 +0000 (18:47 -0700)
committerJonathan 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

index a9d58472e3043ceb2535586816e2c7f0ead2468c..0566cb4cd39532874c83178c5c7495248b603f10 100644 (file)
@@ -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);
This page took 0.030634 seconds and 5 git commands to generate.