diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-03-24 15:51:05 (GMT) |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-04-01 17:24:35 (GMT) |
commit | ce15a81da33b961852f6e6a55305ccc60856de25 (patch) | |
tree | 5aebc56efafb1b8d0af2fcc453f7331b32e6021f /drivers/hwmon/acpi_power_meter.c | |
parent | 6394011d65b7e74666f07cca98747601cf8298fa (diff) | |
download | linux-fsl-qoriq-ce15a81da33b961852f6e6a55305ccc60856de25.tar.xz |
hwmon: (adm1031) Fix compiler warning
Some configurations produce the following compile warning:
drivers/hwmon/adm1031.c: In function 'set_fan_auto_channel':
drivers/hwmon/adm1031.c:292: warning: 'reg' may be used uninitialized in this function
While this is a false positive, it can easily be fixed by overloading the return
value from get_fan_auto_nearest with both register value and error return code
(the register value is never negative). Coincidentially, that also reduces
module size by a few bytes.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/acpi_power_meter.c')
0 files changed, 0 insertions, 0 deletions