Skip to content

Commit

Permalink
i2c-algo-pca: Fix use of uninitialized variable in debug message
Browse files Browse the repository at this point in the history
A recent change broke debugging of pca_xfer(), fix it.

Reported-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Wolfram Sang <w.sang@pengutronix.de>
  • Loading branch information
Jean Delvare committed Apr 13, 2009
1 parent b0cbc86 commit c454dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/algos/i2c-algo-pca.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit c454dee

Please sign in to comment.