projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0cbc86
)
i2c-algo-pca: Fix use of uninitialized variable in debug message
author
Jean Delvare
<khali@linux-fr.org>
Mon, 13 Apr 2009 15:02:13 +0000
(17:02 +0200)
committer
Jean Delvare
<khali@linux-fr.org>
Mon, 13 Apr 2009 15:02:13 +0000
(17:02 +0200)
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>
drivers/i2c/algos/i2c-algo-pca.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/i2c/algos/i2c-algo-pca.c
b/drivers/i2c/algos/i2c-algo-pca.c
index f68e5f8e23ee9685eebade63ee13f393119570a3..6318f7ddc1d44d95189d6e18fe8b4ee627033349 100644
(file)
--- a/
drivers/i2c/algos/i2c-algo-pca.c
+++ b/
drivers/i2c/algos/i2c-algo-pca.c
@@
-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 {