diff mbox series

console: cosmetics: remove #if 0

Message ID 20201202151553.1.I4114af6c3678fdd5bccc69f141dca0b7f30ccc92@changeid
State Accepted
Commit 449efce69a7b7aa5d399d750a5ed12273d0ca851
Delegated to: Tom Rini
Headers show
Series console: cosmetics: remove #if 0 | expand

Commit Message

Patrick DELAUNAY Dec. 2, 2020, 2:16 p.m. UTC
Remove the #if 0 present since the first version of console.c

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 common/console.c | 10 ----------
 1 file changed, 10 deletions(-)

Comments

Simon Glass Dec. 2, 2020, 10:21 p.m. UTC | #1
On Wed, 2 Dec 2020 at 07:16, Patrick Delaunay <patrick.delaunay@st.com> wrote:
>
> Remove the #if 0 present since the first version of console.c
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> ---
>
>  common/console.c | 10 ----------
>  1 file changed, 10 deletions(-)
>

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini Jan. 18, 2021, 1:01 p.m. UTC | #2
On Wed, Dec 02, 2020 at 03:16:13PM +0100, Patrick Delaunay wrote:

> Remove the #if 0 present since the first version of console.c
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/common/console.c b/common/console.c
index 3348436da6..d9dfd61ac3 100644
--- a/common/console.c
+++ b/common/console.c
@@ -929,11 +929,6 @@  done:
 
 	gd->flags |= GD_FLG_DEVINIT;	/* device initialization completed */
 
-#if 0
-	/* If nothing usable installed, use only the initial console */
-	if ((stdio_devices[stdin] == NULL) && (stdio_devices[stdout] == NULL))
-		return 0;
-#endif
 	print_pre_console_buffer(flushpoint);
 	return 0;
 }
@@ -1012,11 +1007,6 @@  int console_init_r(void)
 
 	gd->flags |= GD_FLG_DEVINIT;	/* device initialization completed */
 
-#if 0
-	/* If nothing usable installed, use only the initial console */
-	if ((stdio_devices[stdin] == NULL) && (stdio_devices[stdout] == NULL))
-		return 0;
-#endif
 	print_pre_console_buffer(flushpoint);
 	return 0;
 }