From: Guenter Roeck Date: Wed, 28 Mar 2012 15:35:26 +0000 (-0700) Subject: hwmon: (smsc47b397) Fix compiler warning X-Git-Tag: v3.4-rc3~16^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8528e07edfc6ac5a793509f305b9c3c4fb3672c0;p=pandora-kernel.git hwmon: (smsc47b397) Fix compiler warning Some configurations produce the following compiler warning: drivers/hwmon/smsc47b397.c: In function 'smsc47b397_init': drivers/hwmon/smsc47b397.c:385: 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 smsc47b397_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 (64 bytes for x86_64). Cc: Mark M. Hoffman Signed-off-by: Guenter Roeck Reviewed-by: Robert Coulson Acked-by: Jean Delvare --- Reading git-diff-tree failed