diff options
author | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2020-08-27 18:17:43 +0100 |
---|---|---|
committer | Jozef Lawrynowicz <jozef.l@mittosystems.com> | 2020-08-27 20:10:52 +0100 |
commit | 82b946165d1559e69f9b039e1acdc698e7c374f5 (patch) | |
tree | 730748d7145e3d73135f8ad4ee164a0ee3aa01ea /ld | |
parent | 48b076bbca06e875912b3b784fe212ede04327d8 (diff) | |
download | gdb-82b946165d1559e69f9b039e1acdc698e7c374f5.zip gdb-82b946165d1559e69f9b039e1acdc698e7c374f5.tar.gz gdb-82b946165d1559e69f9b039e1acdc698e7c374f5.tar.bz2 |
ld/emultempl/msp430.em: Remove unused variable
ld/ChangeLog:
* emultempl/msp430.em: Remove unused variable "buf".
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 4 | ||||
-rw-r--r-- | ld/emultempl/msp430.em | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 4fd5546..7881dd1 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -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. diff --git a/ld/emultempl/msp430.em b/ld/emultempl/msp430.em index 2a840c1..a47998a 100644 --- a/ld/emultempl/msp430.em +++ b/ld/emultempl/msp430.em @@ -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 |