Re: [PATCH] iio: AK09911 : Remove duplicate indio_dev->name assignment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 16/06/14 20:01, Srinivas Pandruvada wrote:
Need to remove indio_dev->name assignment for id->name as id can
be NULL. Copy paste bug from ak8975.c where it was fixed later.

kbuild test robot errors:
error: we previously assumed 'id' could be null (see line 288)

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@xxxxxxxxxxxxxxx>
Applied to the togreg branch of iio.git as a fixup to the original driver
patch (as that was last in the tree and I hadn't pushed it out properly yet ;)

Thanks,
---
  drivers/iio/magnetometer/ak09911.c | 1 -
  1 file changed, 1 deletion(-)

diff --git a/drivers/iio/magnetometer/ak09911.c b/drivers/iio/magnetometer/ak09911.c
index 62f980c..b2bc942 100644
--- a/drivers/iio/magnetometer/ak09911.c
+++ b/drivers/iio/magnetometer/ak09911.c
@@ -298,7 +298,6 @@ static int ak09911_probe(struct i2c_client *client,
  	indio_dev->channels = ak09911_channels;
  	indio_dev->num_channels = ARRAY_SIZE(ak09911_channels);
  	indio_dev->info = &ak09911_info;
-	indio_dev->name = id->name;
  	indio_dev->modes = INDIO_DIRECT_MODE;
  	indio_dev->name = name;



--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux