diff options
author | Guenter Roeck <linux@roeck-us.net> | 2014-02-11 21:38:31 -0800 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-03-03 08:01:03 -0800 |
commit | f44e5c5cf9303daac57be0aa01bc0e8f29f1b9bd (patch) | |
tree | 2d0f8ac77d825e070fb4722dfa12eaf299c20092 /drivers/hwmon/emc2103.c | |
parent | 2065bdd64cf3e72c8e9095575ba6e2aca98382f5 (diff) |
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 <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/emc2103.c')
0 files changed, 0 insertions, 0 deletions