Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c454dee2 authored by Jean Delvare's avatar Jean Delvare
Browse files

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



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

Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
Acked-by: default avatarWolfram Sang <w.sang@pengutronix.de>
parent b0cbc861
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {