From f44e5c5cf9303daac57be0aa01bc0e8f29f1b9bd Mon Sep 17 00:00:00 2001 From: Guenter Roeck Date: Tue, 11 Feb 2014 21:38:31 -0800 Subject: [PATCH] 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-format-patch failed