Skip to content

Commit 6c3fb0b

Browse files
committed
genksyms: factor out APP for the ST_NORMAL state
For the ST_NORMAL state, APP is called regardless of the token type. Factor it out. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent 90efe2b commit 6c3fb0b

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

scripts/genksyms/lex.l

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ repeat:
176176
switch (lexstate)
177177
{
178178
case ST_NORMAL:
179+
APP;
179180
switch (token)
180181
{
181182
case IDENT:
182-
APP;
183183
{
184184
int r = is_reserved_word(yytext, yyleng);
185185
if (r >= 0)
@@ -224,26 +224,22 @@ repeat:
224224
break;
225225
226226
case '[':
227-
APP;
228227
lexstate = ST_BRACKET;
229228
count = 1;
230229
goto repeat;
231230
232231
case '{':
233-
APP;
234232
if (dont_want_brace_phrase)
235233
break;
236234
lexstate = ST_BRACE;
237235
count = 1;
238236
goto repeat;
239237
240238
case '=': case ':':
241-
APP;
242239
lexstate = ST_EXPRESSION;
243240
break;
244241
245242
default:
246-
APP;
247243
break;
248244
}
249245
break;

0 commit comments

Comments
 (0)