public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2] libctf: Remove unused variable initialized to itself
@ 2021-10-22  6:14 Michael Forney
  2022-02-10 22:51 ` Michael Forney
  2022-03-02 22:48 ` Alan Modra
  0 siblings, 2 replies; 3+ messages in thread
From: Michael Forney @ 2021-10-22  6:14 UTC (permalink / raw)
  To: binutils

2021-10-06  Michael Forney  <mforney@mforney.org>

	* ctf-link.c: Remove unused variable initialized to itself.
---
v2: Remove unused name_ as well.

 libctf/ctf-link.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/libctf/ctf-link.c b/libctf/ctf-link.c
index cc99f818970..7b87864ade7 100644
--- a/libctf/ctf-link.c
+++ b/libctf/ctf-link.c
@@ -1511,7 +1511,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_dynsyms)
     {
@@ -1592,9 +1592,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))
-- 
2.32.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] libctf: Remove unused variable initialized to itself
  2021-10-22  6:14 [PATCH v2] libctf: Remove unused variable initialized to itself Michael Forney
@ 2022-02-10 22:51 ` Michael Forney
  2022-03-02 22:48 ` Alan Modra
  1 sibling, 0 replies; 3+ messages in thread
From: Michael Forney @ 2022-02-10 22:51 UTC (permalink / raw)
  To: binutils

On 2021-10-21, Michael Forney <mforney@mforney.org> wrote:
> 2021-10-06  Michael Forney  <mforney@mforney.org>
>
> 	* ctf-link.c: Remove unused variable initialized to itself.
> ---
> v2: Remove unused name_ as well.

Ping.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] libctf: Remove unused variable initialized to itself
  2021-10-22  6:14 [PATCH v2] libctf: Remove unused variable initialized to itself Michael Forney
  2022-02-10 22:51 ` Michael Forney
@ 2022-03-02 22:48 ` Alan Modra
  1 sibling, 0 replies; 3+ messages in thread
From: Alan Modra @ 2022-03-02 22:48 UTC (permalink / raw)
  To: Michael Forney; +Cc: binutils

On Thu, Oct 21, 2021 at 11:14:27PM -0700, Michael Forney wrote:
> 2021-10-06  Michael Forney  <mforney@mforney.org>
> 
> 	* ctf-link.c: Remove unused variable initialized to itself.
> ---
> v2: Remove unused name_ as well.

OK.

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-02 22:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-22  6:14 [PATCH v2] libctf: Remove unused variable initialized to itself Michael Forney
2022-02-10 22:51 ` Michael Forney
2022-03-02 22:48 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).