asm/preproc.c: remove dead code, improve comment

ppscan() had a break; statement followed immediately by a return
statement. The latter was left over from code restructuring and is
dead code.

Remove it.

Fix a nearby comment indicating that we should not need to strip a
const from a string pointer. Probably Token::t_charptr should be
const, but it might need additional work.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2026-04-10 13:10:16 -07:00
parent c8ea2d906d
commit e1e03770f7

View file

@ -2283,12 +2283,11 @@ static int ppscan(void *private_data, struct tokenval *tokval)
txt = tok_text(tline);
tokval->t_start = txt;
tokval->t_len = tline->len;
tokval->t_charptr = (char *)txt; /* Fix this */
tokval->t_charptr = (char *)txt; /* Fix needing const removal here */
switch (tline->type) {
default:
break;
return tokval->t_type = tline->type;
case TOKEN_ID:
if (txt[0] == '$') {