Fix a bug in detection. Could have failed to detect the chip and

still return with no error code.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2055 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2003-11-14 20:08:37 +00:00
1 parent 4a0ac962d4
commit 08cebfef4c
1 file changed
+1 -1
+1 -1
View File
@@ -970,8 +970,8 @@ static int w83781d_detect(struct i2c_adapter *adapter, int address,
&& (val2 != 0x94))
|| ((val1 & 0x80) && (val2 != 0x5c) && (val2 != 0x12)
&& (val2 != 0x06)))) {
goto ERROR1;
err = -ENODEV;
goto ERROR1;
}
/* If Winbond SMBus, check address at 0x48. Asus doesn't support
except maybe (hopefully) for the as99127f rev.2 */