OSDN Git Service
(root)
/
android-x86
/
kernel.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
|
history
diff --git
a/drivers/i2c/algos/i2c-algo-pca.c
b/drivers/i2c/algos/i2c-algo-pca.c
index
f68e5f8
..
6318f7d
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 {