ld/emultempl/msp430.em: Remove unused variable

ld/ChangeLog:

	* emultempl/msp430.em: Remove unused variable "buf".
This commit is contained in:
Jozef Lawrynowicz 2020-08-27 18:17:43 +01:00
parent 48b076bbca
commit 82b946165d
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2020-08-27 Jozef Lawrynowicz <jozef.l@mittosystems.com>
* emultempl/msp430.em: Remove unused variable "buf".
2020-08-27 Nick Alcock <nick.alcock@oracle.com>
* ldlang.c (dump_ctf_errs): Unquote CTF error messages.

View File

@ -261,7 +261,6 @@ gld${EMULATION_NAME}_place_orphan (asection * s,
char * lower_name;
char * upper_name;
char * name;
char * buf = NULL;
lang_output_section_statement_type * lower;
lang_output_section_statement_type * upper;
@ -294,7 +293,7 @@ gld${EMULATION_NAME}_place_orphan (asection * s,
only use the part of the name before the second dot. */
if (strchr (secname + 1, '.') != NULL)
{
buf = name = xstrdup (secname);
name = xstrdup (secname);
* strchr (name + 1, '.') = 0;
}
@ -330,7 +329,6 @@ gld${EMULATION_NAME}_place_orphan (asection * s,
end:
free (upper_name);
free (lower_name);
free (buf);
return lower;
}
EOF