i2c-algo-pca: Fix use of uninitialized variable in debug message

A recent change broke debugging of pca_xfer(), fix it.

Reported-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Jean Delvare <[email protected]>
Acked-by: Wolfram Sang <[email protected]>
This commit is contained in:
Jean Delvare 2009-04-13 17:02:13 +02:00
commit c454dee21d

View file

@ -190,7 +190,7 @@ static int pca_xfer(struct i2c_adapter *i2c_adap,
int completed = 1;
unsigned long timeout = jiffies + i2c_adap->timeout;
while (pca_status(adap) != 0xf8) {
while ((state = pca_status(adap)) != 0xf8) {
if (time_before(jiffies, timeout)) {
msleep(10);
} else {