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 | f009179a05f74118549e4810c0681b4848e374d6 (patch) | |
| tree | 8f19f9dbf418ea2ff913ba59a60fce5f2fd35769 /validation | |
| parent | 99f8202a62d33c76285a516aaec4aaefe9585223 (diff) | |
| download | sparse-dev-f009179a05f74118549e4810c0681b4848e374d6.tar.gz | |
testing for SYM_KEYWORD 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.
It's thus 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
