mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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:
parent
b0cbc861a3
commit
c454dee21d
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue