diff options
| author | 2021-04-06 09:23:37 +0100 | |
|---|---|---|
| committer | 2021-04-07 08:36:39 +0100 | |
| commit | 032aec339c86b565b2eef5c677c59294ef1112b9 (patch) | |
| tree | 11423d0fdbc94c645baa9e991b57ecce0510f6d5 | |
| parent | iio: hrtimer-trigger: Fix potential integer overflow in iio_hrtimer_store_sampling_frequency (diff) | |
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>
| -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 |
