summaryrefslogtreecommitdiffstats
path: root/common
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
parent505b89778d8aaa7018bace54f152d62b2994e04d (diff)
downloadbarebox-eeade80e9a0e16ea258e714d962604fa799adb21.tar.gz
barebox-eeade80e9a0e16ea258e714d962604fa799adb21.tar.xz
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')
-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 9675cbb0a6..0825ec07ec 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++;
}