commit 46b51055e0657109fb95d93022d2e1614290311e
parent afec1bc0e0ba8999c706adf6438cd74d18715a88
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 5 Apr 2022 14:32:12 +0200
cc1: Remove unneeded code
The atoi() operation is performed at the beginning of the function
so the check and second atoi are doing nothing.
Diffstat:
1 file changed, 0 insertions(+), 3 deletions(-)
diff --git a/src/cmd/cc/cc1/cpp.c b/src/cmd/cc/cc1/cpp.c
@@ -333,10 +333,7 @@ expand(Symbol *sym)
elen = sprintf(buffer, "%d ", lineno);
goto substitute;
}
- if (!sym->u.s)
- return 1;
- macro.npars = atoi(sym->u.s);
if (!parsepars(¯o))
return 0;
elen = copymacro(¯o);