scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 99fe6d525d3df915d9561abbdd75aadd12aacd12
parent a3b5f660162332d204a73fdd2d5c40f95f1770cd
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Mon, 28 Oct 2013 20:18:36 +0100

Remove unneeded check

lookup is no longer returning NULL, so it is not necessary
check against NULL after calling it.

Diffstat:
Mdecl.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/decl.c b/decl.c @@ -197,8 +197,7 @@ specifier(void) unsigned char tok = ahead(); sym = lookup(yytext, NS_TYPEDEF); - if (sym && sym->ctype && - tok != ';' && tok != ',') { + if (sym->ctype && tok != ';' && tok != ',') { if (!tp) tp = newctype(); tp->type = TYPEDEF;