From 08cebfef4c3e3345e1f7a2c745fde0f4e1614906 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 14 Nov 2003 20:08:37 +0000 Subject: [PATCH] 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 --- kernel/chips/w83781d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/chips/w83781d.c b/kernel/chips/w83781d.c index 4ea4900e..124ff1ba 100644 --- a/kernel/chips/w83781d.c +++ b/kernel/chips/w83781d.c @@ -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 */