git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2065bdd
)
hwmon: (smm665): Return error from i2c_smbus_read_word_swapped
author
Guenter Roeck
<linux@roeck-us.net>
Wed, 12 Feb 2014 05:38:31 +0000
(21:38 -0800)
committer
Guenter Roeck
<linux@roeck-us.net>
Mon, 3 Mar 2014 16:01:03 +0000
(08:01 -0800)
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>
drivers/hwmon/smm665.c
patch
|
blob
|
history
diff --cc
drivers/hwmon/smm665.c
Simple merge