parser: get rid of a pointless loop in yylex()

A loop at the top of yylex() traverses the symbols list without
doing anything.  It serves no purpose, so get rid of it.

Signed-off-by: Alex Elder <elder@linaro.org>
Message-Id: <20211001232338.769309-2-elder@linaro.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This commit is contained in:
Alex Elder 2021-10-01 18:23:05 -05:00 committed by Bjorn Andersson
parent 815dd495eb
commit 0d92483f4a

View File

@ -131,8 +131,6 @@ static struct token yylex()
int base;
int ch;
list_for_each_entry(sym, &symbols, node);
while ((ch = input()) && isspace(ch))
;