Re: [PATCH V2 2/2] iio: meter: ade7759: add error handling in _reset and _stop_device

2015-02-01 Thread Jonathan Cameron
On 02/01/15 09:02, Devendra Naga wrote: This patch adds the error handling for the value returned from ade7759_spi_read_reg_16. With this patch, the following randconfig warnings get fixed automatically. drivers/staging/iio/meter/ade7759.c:224:6: warning: ‘val’ may be used uninitialized in

[PATCH V2 2/2] iio: meter: ade7759: add error handling in _reset and _stop_device

2015-01-02 Thread Devendra Naga
This patch adds the error handling for the value returned from ade7759_spi_read_reg_16. With this patch, the following randconfig warnings get fixed automatically. drivers/staging/iio/meter/ade7759.c:224:6: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized]