瀏覽代碼

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>
Matt Ranostay 9 年之前
父節點
當前提交
4d462b85e7
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/iio/proximity/as3935.c

+ 0 - 1
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);