arm:cleanup add assert.

This commit is contained in:
Kees Jongenburger 2013-04-10 16:53:18 +02:00
parent 1e9492a8b8
commit 9d9456ef7d

View file

@ -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));