diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-07-19 16:45:19 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-07-25 23:19:12 +0200 |
| commit | 3832167298fa0e9329bf1dd4d78cb47e6179493d (patch) | |
| tree | 65950fb6afd9e2dfa1b4da7735bf5ff5d2cd0507 /validation | |
| parent | f009179a05f74118549e4810c0681b4848e374d6 (diff) | |
| download | sparse-dev-3832167298fa0e9329bf1dd4d78cb47e6179493d.tar.gz | |
testing for sym->op is unneeded for lookup_keyword()
All symbols returned by lookup_keyword() are of type SYM_KEYWORD,
because either:
1) it's in NS_KEYWORD (and all symbol in NS_KEYWORD are SYM_KEYWORD)
2) it's in NS_TYPEDEF and all *keywords* in NS_TYPEDEF are reserved
and so can't be user defined and so must be SYM_KEYWORD.
Thus, they all have a symbol_op associated to them and it's
unneeded to test it.
So, remove the unneeded test.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'validation')
0 files changed, 0 insertions, 0 deletions
