From: Guenter Roeck Date: Sat, 2 Jun 2012 17:16:32 +0000 (-0700) Subject: hwmon: (emc2103) Fix use of an uninitilized variable in error case X-Git-Tag: v3.5-rc4~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2355375efdf10f43680d420023baa97796bfcdff;p=pandora-kernel.git 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 Reviewed-by: Robert Coulson Acked-by: Jean Delvare --- Reading git-diff-tree failed