mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-05 22:08:19 +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
@@ -324,7 +324,6 @@ int pca954x_detect(struct i2c_adapter *adapter, int address,
|
||||
printk(KERN_WARNING
|
||||
"i2c-%d: pca954x.o failed to read reg at %0x",
|
||||
i2c_adapter_id(adapter), address);
|
||||
err = -ENODEV;
|
||||
goto ERROR1;
|
||||
}
|
||||
data->origval = i;
|
||||
|
||||
Reference in new issue
Block a user