From: Guenter Roeck Date: Fri, 20 Apr 2012 15:39:17 +0000 (-0400) Subject: hwmon: (ad7314) Fix build warning X-Git-Tag: v3.4-rc5~13^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eae1415dda93fd4edcce0637aa64b3c9b567563f;p=pandora-kernel.git hwmon: (ad7314) Fix build warning The following build warning is seen in some configurations. drivers/hwmon/ad7314.c: In function 'ad7314_show_temperature': drivers/hwmon/ad7314.c:70: warning: 'data' may be used uninitialized in this function Fix by overloading the return value from ad7314_spi_read with both data and error code (the returned data is really u16 and needs to be converted into a signed value anyway). Signed-off-by: Guenter Roeck Cc: Jonathan Cameron Acked-by: Jean Delvare --- Reading git-diff-tree failed