From: Guenter Roeck Date: Wed, 28 Mar 2012 15:55:12 +0000 (-0700) Subject: hwmon: (smsc47m1) Fix compiler warning X-Git-Tag: v3.4-rc3~16^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d0045ee4a220872b65147b5b290e4a4852386d9;p=pandora-kernel.git hwmon: (smsc47m1) Fix compiler warning Some configurations produce the following compiler warning: drivers/hwmon/smsc47m1.c: In function 'sm_smsc47m1_init': drivers/hwmon/smsc47m1.c:938: warning: 'address' may be used uninitialized in this function While this is a false positive, it can easily be fixed by overloading the return value from smsc47m1_find with both address and error return code (the address is an unsigned short and thus never negative). This also reduces module size by a few bytes (46 bytes for x86_64). Signed-off-by: Guenter Roeck Reviewed-by: Robert Coulson --- Reading git-diff-tree failed