Skip to contentSkip to conversation

console: cosmetics: remove #if 0

PATCH New Patrick Delaunay 3 participants 3 messages Dec 2, 2020 – Jan 18, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 console: cosmetics: remove #if 0

Remove the #if 0 present since the first version of console.c

---

 common/console.c | 10 ----------
 1 file changed, 10 deletions(-)
common/console.c +0 -10
index 3348436da6..d9dfd61ac3 100644
@@ -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;
 }
Signature · 1 line
2.17.1
#2 lore raw

PATCH 1/1 console: cosmetics: remove #if 0

In reply to Patrick Delaunay
Quoted 4 lines · Patrick Delaunay

Remove the #if 0 present since the first version of console.c

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210118/70035c87/attachment.sig>