mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
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>
This commit is contained in:
parent
c10f8109f7
commit
032aec339c
@ -235,7 +235,7 @@ static int ad7150_write_event_config(struct iio_dev *indio_dev,
|
|||||||
enum iio_event_direction dir, int state)
|
enum iio_event_direction dir, int state)
|
||||||
{
|
{
|
||||||
struct ad7150_chip_info *chip = iio_priv(indio_dev);
|
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
|
* There is only a single shared control and no on chip
|
||||||
|
Loading…
Reference in New Issue
Block a user