From: Marek Vasut Date: Sat, 1 Sep 2012 00:44:10 +0200 Subject: [U-Boot] [PATCH 1/6] stdio: dm: Remove dead code in console.c In-Reply-To: <1346453055-30888-1-git-send-email-marex@denx.de> References: <1346453055-30888-1-git-send-email-marex@denx.de> Message-ID: <1346453055-30888-2-git-send-email-marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Signed-off-by: Marek Vasut Cc: Wolfgang Denk --- 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