From 9d9456ef7d39fd6953dd345f9010ac5d727ce3c9 Mon Sep 17 00:00:00 2001 From: Kees Jongenburger Date: Wed, 10 Apr 2013 16:53:18 +0200 Subject: [PATCH] arm:cleanup add assert. --- drivers/tty/tty.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/tty.c b/drivers/tty/tty.c index c1dc41a02..aaa442d8f 100644 --- a/drivers/tty/tty.c +++ b/drivers/tty/tty.c @@ -426,6 +426,7 @@ set_console_line(char term[CONS_ARG]) } /* Serial lines */ + assert(NR_RS_LINES <= 9);/* bellow assumes this is the case */ for (i = 0; i < NR_RS_LINES; i++) { char sercons[6]; strlcpy(sercons, "tty00", sizeof(sercons));