projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64a4806
)
Removes dead code in the file common/cmd_i2c.c
author
Pratap Chandu
<pratap.rrke@gmail.com>
Thu, 12 Nov 2009 13:58:25 +0000
(19:28 +0530)
committer
Wolfgang Denk
<wd@denx.de>
Wed, 2 Dec 2009 22:35:24 +0000
(23:35 +0100)
There is some dead code enclosed by #if 0 .... #endif in the file
common/cmd_i2c.c
This patch removes the dead code.
Signed-off-by: Pratap Chandu <pratap.rrke@gmail.com>
common/cmd_i2c.c
patch
|
blob
|
history
diff --git
a/common/cmd_i2c.c
b/common/cmd_i2c.c
index 8f0fc9e1d73a11bea1aa3ae80425dc1c2f51fcf9..8d6feda27213c3b2b70180395c4740d2cf20f5d4 100644
(file)
--- a/
common/cmd_i2c.c
+++ b/
common/cmd_i2c.c
@@
-326,14
+326,6
@@
int do_i2c_mw ( cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
#if !defined(CONFIG_SYS_I2C_FRAM)
udelay(11000);
#endif
-
-#if 0
- for (timeout = 0; timeout < 10; timeout++) {
- udelay(2000);
- if (i2c_probe(chip) == 0)
- break;
- }
-#endif
}
return (0);