From: Guenter Roeck Date: Wed, 12 Feb 2014 05:38:31 +0000 (-0800) Subject: hwmon: (smm665): Return error from i2c_smbus_read_word_swapped X-Git-Tag: v3.15-rc1~145^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f44e5c5cf9303daac57be0aa01bc0e8f29f1b9bd;p=pandora-kernel.git hwmon: (smm665): Return error from i2c_smbus_read_word_swapped There is no reason to replace one error code with another, and returning -1 as error code is wrong anyway. Smatch log: drivers/hwmon/smm665.c:225 smm665_read_adc() info: why not propagate 'rv' from i2c_smbus_read_word_swapped() instead of (-1)? Reviewed-by: Jean Delvare Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed