diff options
Diffstat (limited to 'scripts/genksyms/lex.l')
-rw-r--r-- | scripts/genksyms/lex.l | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/genksyms/lex.l b/scripts/genksyms/lex.l index 4687b1d147de..c125d06fbd36 100644 --- a/scripts/genksyms/lex.l +++ b/scripts/genksyms/lex.l | |||
@@ -193,8 +193,7 @@ repeat: | |||
193 | } | 193 | } |
194 | if (!suppress_type_lookup) | 194 | if (!suppress_type_lookup) |
195 | { | 195 | { |
196 | struct symbol *sym = find_symbol(yytext, SYM_TYPEDEF); | 196 | if (find_symbol(yytext, SYM_TYPEDEF, 1)) |
197 | if (sym && sym->type == SYM_TYPEDEF) | ||
198 | token = TYPE; | 197 | token = TYPE; |
199 | } | 198 | } |
200 | } | 199 | } |