From: Guenter Roeck Date: Wed, 28 Mar 2012 16:14:03 +0000 (-0700) Subject: hwmon: (pmbus_core) Fix compiler warning X-Git-Tag: v3.4-rc3~16^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7ee11157f1fce02632e2f3a56b99b2afd9e5f93;p=pandora-kernel.git 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 Reviewed-by: Robert Coulson --- Reading git-diff-tree failed