summaryrefslogtreecommitdiffstats
path: root/common/console_simple.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2018-06-19 08:32:00 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2018-06-19 08:32:03 +0200
commiteeade80e9a0e16ea258e714d962604fa799adb21 (patch)
treed76b7402524bc933e9556b51a155c003e716f7d0 /common/console_simple.c
parent505b89778d8aaa7018bace54f152d62b2994e04d (diff)
downloadbarebox-eeade80e9a0e16ea258e714d962604fa799adb21.tar.gz
console_simple: Remove duplicated newline conversion
console_puts uses console_putc for printing which already does newline conversion, so do not do it again in console_puts. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/console_simple.c')
-rw-r--r--common/console_simple.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/common/console_simple.c b/common/console_simple.c
index 9675cbb..0825ec0 100644
--- a/common/console_simple.c
+++ b/common/console_simple.c
@@ -16,8 +16,6 @@ int console_puts(unsigned int ch, const char *str)
while (*s) {
console_putc(ch, *s);
- if (*s == '\n')
- console_putc(ch, '\r');
s++;
i++;
}