mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-28 20:58:22 +00:00
Do not return negative values to i2c_detect on non-fatal errors.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2837 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
da76debaa5
commit
aa1f43f680
8 files changed
+17
-44
No files matched your search
@@ -125,10 +125,8 @@ int pca9540_detect(struct i2c_adapter *adapter, int address,
|
||||
if ((reg & 0xfa) != 0x00
|
||||
|| reg != i2c_smbus_read_byte(new_client)
|
||||
|| reg != i2c_smbus_read_byte(new_client)
|
||||
|| reg != i2c_smbus_read_byte(new_client)) {
|
||||
err = -ENODEV;
|
||||
|| reg != i2c_smbus_read_byte(new_client))
|
||||
goto ERROR1;
|
||||
}
|
||||
}
|
||||
|
||||
kind = pca9540;
|
||||
|
||||
Reference in new issue
Block a user