aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-inline.c
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2012-04-20 11:39:17 -0400
committerGuenter Roeck <[email protected]>2012-04-22 18:22:53 -0700
commiteae1415dda93fd4edcce0637aa64b3c9b567563f (patch)
tree19437c6a34689a1286ec81f490f48b14c885ff9e /lib/mpi/mpi-inline.c
parent66f75a5d028beaf67c931435fdc3e7823125730c (diff)
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 <[email protected]> Cc: Jonathan Cameron <[email protected]> Acked-by: Jean Delvare <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions