[binutils-gdb] aarch64: Remove unnecessary temporary variables

Alice Carlotti via Binutils-cvs <[email protected]>
Newsgroups gmane.comp.gnu.binutils.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=530d3b1979643bfe119965e34c3715a665044e0e

commit 530d3b1979643bfe119965e34c3715a665044e0e
Author: Alice Carlotti <[email protected]>
Date:   Thu May 7 07:05:08 2026 +0100

    aarch64: Remove unnecessary temporary variables

Diff:
---
 opcodes/aarch64-dis.c | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/opcodes/aarch64-dis.c b/opcodes/aarch64-dis.c
index aacf077d7d6..3395cc3fde1 100644
--- a/opcodes/aarch64-dis.c
+++ b/opcodes/aarch64-dis.c
@@ -1062,15 +1062,13 @@ aarch64_ext_ft (const aarch64_operand *self ATTRIBUTE_UNUSED,
       || inst->opcode->iclass == ldstpair_off
       || inst->opcode->iclass == loadlit)
     {
-      enum aarch64_opnd_qualifier qualifier;
       switch (value)
 	{
-	case 0: qualifier = AARCH64_OPND_QLF_S_S; break;
-	case 1: qualifier = AARCH64_OPND_QLF_S_D; break;
-	case 2: qualifier = AARCH64_OPND_QLF_S_Q; break;
+	case 0: info->qualifier = AARCH64_OPND_QLF_S_S; break;
+	case 1: info->qualifier = AARCH64_OPND_QLF_S_D; break;
+	case 2: info->qualifier = AARCH64_OPND_QLF_S_Q; break;
 	default: return false;
 	}
-      info->qualifier = qualifier;
     }
   else
     {
@@ -1117,8 +1115,7 @@ aarch64_ext_rcpc3_addr_opt_offset (const aarch64_operand *self ATTRIBUTE_UNUSED,
       enum aarch64_opnd type;
       for (int i = 0; i < AARCH64_MAX_OPND_NUM; i++)
 	{
-	  aarch64_opnd_info opnd = info[i];
-	  type = opnd.type;
+	  type = info[i].type;
 	  if (aarch64_operands[type].op_class == AARCH64_OPND_CLASS_ADDRESS)
 	    break;
 	}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.