summaryrefslogtreecommitdiff
path: root/drivers/hwmon/jc42.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2012-03-28 20:14:03 +0400
committerGuenter Roeck <guenter.roeck@ericsson.com>2012-04-09 23:17:38 +0400
commitd7ee11157f1fce02632e2f3a56b99b2afd9e5f93 (patch)
tree1dda4145ec73bd54659bf3ba7ff250d4833bc66a /drivers/hwmon/jc42.c
parent1d0045ee4a220872b65147b5b290e4a4852386d9 (diff)
downloadlinux-d7ee11157f1fce02632e2f3a56b99b2afd9e5f93.tar.xz
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/hwmon/jc42.c')
0 files changed, 0 insertions, 0 deletions