[PATCH 1/3] fbconsole: no need to copy extra line

Antony Pavlov antonynpavlov at gmail.com
Thu Nov 5 21:52:17 PST 2015


From: Aleksey Kuleshov <rndfax at yandex.ru>

Signed-off-by: Aleksey Kuleshov <rndfax at yandex.ru>
---
 drivers/video/fbconsole.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/video/fbconsole.c b/drivers/video/fbconsole.c
index b10503e..c38d13c 100644
--- a/drivers/video/fbconsole.c
+++ b/drivers/video/fbconsole.c
@@ -192,8 +192,9 @@ static void printchar(struct fbc_priv *priv, int c)
 
 		buf = gui_screen_render_buffer(priv->sc);
 
-		memcpy(buf, buf + line_height, line_height * (priv->rows + 1));
+		memcpy(buf, buf + line_height, line_height * priv->rows);
 		memset(buf + line_height * priv->rows, 0, line_height);
+
 		gu_screen_blit(priv->sc);
 		priv->y = priv->rows;
 	}
-- 
2.6.2




More information about the barebox mailing list