diff mbox

[U-Boot,1/6] stdio: dm: Remove dead code in console.c

Message ID 1346453055-30888-2-git-send-email-marex@denx.de
State Superseded
Delegated to: Marek Vasut
Headers show

Commit Message

Marek Vasut Aug. 31, 2012, 10:44 p.m. UTC
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
---
 common/console.c |   11 -----------
 1 file changed, 11 deletions(-)
diff mbox

Patch

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;
 }