[U-Boot] [PATCH 1/6] stdio: dm: Remove dead code in console.c
Marek Vasut
marex at denx.de
Sat Sep 1 00:44:10 CEST 2012
Signed-off-by: Marek Vasut <marex at denx.de>
Cc: Wolfgang Denk <wd at denx.de>
---
common/console.c | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/common/console.c b/common/console.c
index 1177f7d..df03cef 100644
--- a/common/console.c
+++ b/common/console.c
@@ -694,11 +694,6 @@ done:
}
#endif /* CONFIG_SYS_CONSOLE_ENV_OVERWRITE */
-#if 0
- /* If nothing usable installed, use only the initial console */
- if ((stdio_devices[stdin] == NULL) && (stdio_devices[stdout] == NULL))
- return 0;
-#endif
return 0;
}
@@ -767,12 +762,6 @@ int console_init_r(void)
setenv(stdio_names[i], stdio_devices[i]->name);
}
-#if 0
- /* If nothing usable installed, use only the initial console */
- if ((stdio_devices[stdin] == NULL) && (stdio_devices[stdout] == NULL))
- return 0;
-#endif
-
return 0;
}
--
1.7.10.4
More information about the U-Boot
mailing list