Remove dead store in linker script CRLF handling

This commit is contained in:
ISSOtm
2021-05-17 12:29:02 +02:00
committed by Rangi
parent 06ea7b20bf
commit 872af9c7ed

View File

@@ -212,10 +212,8 @@ static struct LinkerScriptToken *nextToken(void)
if (curchar == '\r') { if (curchar == '\r') {
/* Handle CRLF */ /* Handle CRLF */
curchar = nextChar(); curchar = nextChar();
if (curchar != '\n') { if (curchar != '\n')
ungetc(curchar, linkerScript); ungetc(curchar, linkerScript);
curchar = '\r';
}
} }
} else if (curchar == '"') { } else if (curchar == '"') {
/* If we have a string start, this is a string */ /* If we have a string start, this is a string */