]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
libctf: Remove unused variable initialized to itself
authorMichael Forney <mforney@mforney.org>
Sat, 25 Apr 2026 05:42:37 +0000 (22:42 -0700)
committerAlan Modra <amodra@gmail.com>
Sat, 2 May 2026 10:17:39 +0000 (19:47 +0930)
* ctf-link.c: Remove unused variable initialized to itself.

libctf/ctf-link.c

index 10bef42602d5959b951954b84a78fa9f63f6218f..9fdd39fdb9514f8cf7c33ef8f02c1d04cfbd7c96 100644 (file)
@@ -1649,7 +1649,7 @@ ctf_link_shuffle_syms (ctf_dict_t *fp)
   ctf_in_flight_dynsym_t *did, *nid;
   ctf_next_t *i = NULL;
   int err = ENOMEM;
-  void *name_, *sym_;
+  void *sym_;
 
   if (fp->ctf_stypes > 0)
     return ctf_set_errno (fp, ECTF_RDONLY);
@@ -1733,9 +1733,8 @@ ctf_link_shuffle_syms (ctf_dict_t *fp)
                                   sizeof (ctf_link_sym_t *))) == NULL)
     goto err;
 
-  while ((err = ctf_dynhash_next (fp->ctf_dynsyms, &i, &name_, &sym_)) == 0)
+  while ((err = ctf_dynhash_next (fp->ctf_dynsyms, &i, NULL, &sym_)) == 0)
     {
-      const char *name = (const char *) name;
       ctf_link_sym_t *symp = (ctf_link_sym_t *) sym_;
 
       if (!ctf_assert (fp, symp->st_symidx <= fp->ctf_dynsymmax))