Re: [PATCH] iio: ade7753: avoid uninitialized data

2016-01-30 Thread Jonathan Cameron
On 25/01/16 15:52, Arnd Bergmann wrote: > The ade7753_spi_read_reg_16() will either successfully read a value > from SPI, or return a failure code without delivering data. However, > the ade7753_stop_device() and ade7753_reset() functions use the returned > data without checking for an error condit

[PATCH] iio: ade7753: avoid uninitialized data

2016-01-25 Thread Arnd Bergmann
The ade7753_spi_read_reg_16() will either successfully read a value from SPI, or return a failure code without delivering data. However, the ade7753_stop_device() and ade7753_reset() functions use the returned data without checking for an error condition first. Gcc detects this as a possible bug an