diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-04-20 17:39:17 +0200 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-04-23 03:22:53 +0200 |
commit | eae1415dda93fd4edcce0637aa64b3c9b567563f (patch) | |
tree | 19437c6a34689a1286ec81f490f48b14c885ff9e /drivers/hwmon/smsc47m192.c | |
parent | Linux 3.4-rc4 (diff) | |
download | linux-eae1415dda93fd4edcce0637aa64b3c9b567563f.tar.xz linux-eae1415dda93fd4edcce0637aa64b3c9b567563f.zip |
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 <linux@roeck-us.net>
Cc: Jonathan Cameron <jic23@cam.ac.uk>
Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/smsc47m192.c')
0 files changed, 0 insertions, 0 deletions