tmp_suning_uos_patched/drivers/hwmon/pmbus
Guenter Roeck d7ee11157f hwmon: (pmbus_core) Fix compiler warning
Some configurations produce the following compiler warning:

drivers/hwmon/pmbus/pmbus_core.c: In function 'pmbus_show_boolean':
drivers/hwmon/pmbus/pmbus_core.c:752: warning: 'val' may be used uninitialized in this function

While this is a false positive, it can easily be fixed by overloading the return
value from pmbus_get_boolean with both val and error return code (val is a
boolean and thus never negative).

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
2012-04-09 12:17:38 -07:00
..
adm1275.c
Kconfig
lm25066.c
ltc2978.c
Makefile
max8688.c
max16064.c
max34440.c
pmbus_core.c
pmbus.c
pmbus.h
ucd9000.c
ucd9200.c
zl6100.c