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
..
2012-04-06 17:54:53 -07:00
2012-03-19 09:37:11 +00:00
2012-04-05 22:13:39 -07:00
2012-03-27 16:03:32 -07:00
2012-03-28 15:58:21 -07:00
2012-03-28 13:56:35 -07:00
2012-03-29 18:02:10 -07:00
2012-03-28 14:08:46 -07:00
2012-04-06 17:54:53 -07:00
2012-03-17 01:41:43 -07:00
2012-04-04 10:09:30 -07:00
2012-03-28 15:58:21 -07:00
2012-03-30 00:09:17 -07:00
2012-04-07 09:52:46 -07:00
2012-04-05 22:13:39 -07:00
2012-04-05 22:13:39 -07:00
2012-03-29 18:02:10 -07:00
2012-04-06 17:54:53 -07:00