Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
drivers/iio/cdc/ad7150.c
··· 235 235 enum iio_event_direction dir, int state) 236 236 { 237 237 struct ad7150_chip_info *chip = iio_priv(indio_dev); 238 - int ret; 238 + int ret = 0; 239 239 240 240 /* 241 241 * There is only a single shared control and no on chip