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:
60c1f31
)
hwmon: (adt7462) ADT7462_REG_VOLT_MAX() should return 0
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 14 Aug 2013 09:45:26 +0000
(12:45 +0300)
committer
Guenter Roeck
<linux@roeck-us.net>
Tue, 27 Aug 2013 15:28:01 +0000
(08:28 -0700)
The callers never check for negative but they sometimes check for zero
returns:
int reg = ADT7462_REG_VOLT_MAX(data, i);
data->volt_max[i] =
(reg ? i2c_smbus_read_byte_data(client, reg) : 0);
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
No differences found