Quellcode durchsuchen

Removes dead code in the file common/cmd_i2c.c

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>
Pratap Chandu vor 15 Jahren
Ursprung
Commit
bd3784df94
1 geänderte Dateien mit 0 neuen und 8 gelöschten Zeilen
  1. 0 8
      common/cmd_i2c.c

+ 0 - 8
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);