diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-04-06 11:23:37 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-04-07 10:36:39 +0300 |
commit | 032aec339c86b565b2eef5c677c59294ef1112b9 (patch) | |
tree | 11423d0fdbc94c645baa9e991b57ecce0510f6d5 /drivers/iio/cdc | |
parent | c10f8109f78b4e3722003c923e6aeebc73a6134a (diff) | |
download | linux-032aec339c86b565b2eef5c677c59294ef1112b9.tar.xz |
iio:cdc:ad7150: Fix use of uninitialized ret
This doesn't appear to generate a warning on all versions of GCC, but
0-day reported it and the report looks valid.
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/cdc')
-rw-r--r-- | drivers/iio/cdc/ad7150.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/cdc/ad7150.c b/drivers/iio/cdc/ad7150.c index f9cce1a64586..ebe112b4618b 100644 --- a/drivers/iio/cdc/ad7150.c +++ b/drivers/iio/cdc/ad7150.c @@ -235,7 +235,7 @@ static int ad7150_write_event_config(struct iio_dev *indio_dev, enum iio_event_direction dir, int state) { struct ad7150_chip_info *chip = iio_priv(indio_dev); - int ret; + int ret = 0; /* * There is only a single shared control and no on chip |