From: Devendra Naga Date: Fri, 2 Jan 2015 09:02:55 +0000 (-0500) Subject: iio: meter: ade7759: add error handling in _reset and _stop_device X-Git-Tag: omap-for-v4.2/o2_dc~155^2~138^2~102^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e716a15ce5e5840cac0fb4cd6ca79d70d3568a9;p=pandora-kernel.git iio: meter: ade7759: add error handling in _reset and _stop_device 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] drivers/staging/iio/meter/ade7759.c:309:6: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Devendra Naga Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed