diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-03-28 08:55:12 -0700 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-04-09 12:17:38 -0700 |
commit | 1d0045ee4a220872b65147b5b290e4a4852386d9 (patch) | |
tree | 8f4a30ff25413a6b6ce885961c99ae1adf50a8ad /sound | |
parent | 776cdc11b3b0fc21e34600e22abe1c8209d2f3f0 (diff) | |
download | op-kernel-dev-1d0045ee4a220872b65147b5b290e4a4852386d9.zip op-kernel-dev-1d0045ee4a220872b65147b5b290e4a4852386d9.tar.gz |
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 <linux@roeck-us.net>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions