commit d868791e6cb87f6e2511517d4f22b3d04a843dab
parent d3b8c4d1db7ed84845f1115765d143ce7ffc4d44
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);