From: Guenter Roeck Date: Sat, 24 Mar 2012 15:51:05 +0000 (-0700) Subject: hwmon: (adm1031) Fix compiler warning X-Git-Tag: v3.4-rc2~25^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce15a81da33b961852f6e6a55305ccc60856de25;p=pandora-kernel.git 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 Acked-by: Jean Delvare --- Reading git-diff-tree failed