Guenter Roeck 2355375efd 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>
2012-06-18 08:48:00 -07:00
..
2012-04-18 11:15:50 -07:00
2012-03-18 18:27:03 -07:00
2012-03-18 18:26:51 -07:00
2012-05-20 19:41:48 -07:00
2012-03-27 20:06:02 +02:00
2012-03-18 18:27:16 -07:00
2012-03-18 18:26:52 -07:00
2012-03-18 18:26:35 -07:00
2012-05-22 06:48:02 -07:00
2012-05-20 19:41:48 -07:00
2012-05-20 19:41:48 -07:00
2012-01-05 08:19:35 -08:00
2012-03-18 18:27:24 -07:00
2012-03-18 18:27:24 -07:00
2012-03-18 18:27:25 -07:00
2012-03-18 18:27:05 -07:00
2012-03-18 18:27:06 -07:00
2012-05-22 06:48:02 -07:00
2012-03-28 13:56:35 -07:00
2012-03-23 10:02:20 +01:00
2012-05-30 07:55:38 +02:00
2012-05-30 07:55:38 +02:00
2012-03-18 18:26:36 -07:00
2012-03-18 18:27:10 -07:00
2012-03-21 10:37:25 -07:00
2012-03-27 20:06:02 +02:00