]> git.karo-electronics.de Git - linux-beck.git/commit
iio: meter: ade7754: add error handling in _reset and _stop_device
authorDevendra Naga <devendra.aaru@gmail.com>
Fri, 2 Jan 2015 09:02:54 +0000 (04:02 -0500)
committerJonathan Cameron <jic23@kernel.org>
Tue, 3 Feb 2015 21:03:20 +0000 (21:03 +0000)
commitabe4e26bb7edb7b36ef99e2e78e86de79b18f922
treef794983f30df653eb3e274ce0594495bb7ca914a
parent178cf7de6f1d3b95407f5a76af249fc924d42576
iio: meter: ade7754: add error handling in _reset and _stop_device

This patch adds the error handling for the value returned from
ade7754_spi_read_reg_8. With this patch, the following randconfig
warnings get fixed automatically.

drivers/staging/iio/meter/ade7754.c:222:6: warning: ‘val’ may be used
uninitialized in this function [-Wmaybe-uninitialized]
drivers/staging/iio/meter/ade7754.c:368:6: warning: ‘val’ may be used
uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/staging/iio/meter/ade7754.c