diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-03-28 15:35:26 (GMT) |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-04-09 19:17:36 (GMT) |
commit | 8528e07edfc6ac5a793509f305b9c3c4fb3672c0 (patch) | |
tree | ea57a83f1c4d2ed4187b50ac341d519da7a2ea2b /drivers/hwmon/acpi_power_meter.c | |
parent | 0034102808e0dbbf3a2394b82b1bb40b5778de9e (diff) | |
download | linux-fsl-qoriq-8528e07edfc6ac5a793509f305b9c3c4fb3672c0.tar.xz |
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 <mhoffman@lightlink.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/acpi_power_meter.c')
0 files changed, 0 insertions, 0 deletions