Refine byte read retry on error. Patch by David Knierim.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2748 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2004-10-26 20:43:54 +00:00
1 parent ac53193d98
commit 3457c6112a
1 file changed
+2 -1
+2 -1
View File
@@ -492,10 +492,11 @@ static int lm87_read_value(struct i2c_client *client, u8 reg)
printk(KERN_WARNING "lm87.o: Read byte data failed, "
"address 0x%02x\n", reg);
mdelay(i);
mdelay(i + 3);
}
/* <TODO> what to return in case of error? */
printk(KERN_ERR "lm87.o: All read byte retries failed!!\n");
return 0;
}