diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-03-28 09:14:03 -0700 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-04-09 12:17:38 -0700 |
commit | d7ee11157f1fce02632e2f3a56b99b2afd9e5f93 (patch) | |
tree | 1dda4145ec73bd54659bf3ba7ff250d4833bc66a /drivers/gpio/gpio-samsung.c | |
parent | 1d0045ee4a220872b65147b5b290e4a4852386d9 (diff) |
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>
Diffstat (limited to 'drivers/gpio/gpio-samsung.c')
0 files changed, 0 insertions, 0 deletions