diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-06-02 10:16:32 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2012-06-18 08:48:00 -0700 |
commit | 2355375efdf10f43680d420023baa97796bfcdff (patch) | |
tree | 9df2ed9840eaffdc1de36aae951244457d668cfd /drivers/hwmon/ibmpex.c | |
parent | ac852edb47b15900886ba2564eeeb13b3b526e3e (diff) | |
download | linux-2355375efdf10f43680d420023baa97796bfcdff.tar.bz2 |
hwmon: (emc2103) Fix use of an uninitilized variable in error case
Fix:
emc2103.c: In function set_pwm_enable:
emc2103.c:463:12: warning: conf_reg may be used uninitialized in this function
by checking the return value from read_u8_from_i2c(). This fixes a real problem,
as conf_reg is really uninitialized if read_u8_from_i2c returns an error.
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/ibmpex.c')
0 files changed, 0 insertions, 0 deletions