This is the mail archive of the binutils-cvs@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Remove a if-clause that is redundant because the same test has been performed earlier on.


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a915c10f7f1cd8ed433554f05a7281995ae9a540

commit a915c10f7f1cd8ed433554f05a7281995ae9a540
Author: Nick Clifton <nickc@redhat.com>
Date:   Fri Nov 20 14:15:20 2015 +0000

    Remove a if-clause that is redundant because the same test has been performed earlier on.
    
    	PR binutils/19224
    	* h8300-dis.c (bfd_h8_disassemble): Remove redundant if clause.

Diff:
---
 opcodes/ChangeLog   | 5 +++++
 opcodes/h8300-dis.c | 4 ----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog
index 08d4468..3eb88d4 100644
--- a/opcodes/ChangeLog
+++ b/opcodes/ChangeLog
@@ -1,5 +1,10 @@
 2015-11-20  Nick Clifton  <nickc@redhat.com>
 
+	PR binutils/19224
+	* h8300-dis.c (bfd_h8_disassemble): Remove redundant if clause.
+
+2015-11-20  Nick Clifton  <nickc@redhat.com>
+
 	* po/zh_CN.po: Updated simplified Chinese translation.
 
 2015-11-19  Matthew Wahab  <matthew.wahab@arm.com>
diff --git a/opcodes/h8300-dis.c b/opcodes/h8300-dis.c
index 3eee70b..17a3cbd 100644
--- a/opcodes/h8300-dis.c
+++ b/opcodes/h8300-dis.c
@@ -544,10 +544,6 @@ bfd_h8_disassemble (bfd_vma addr, disassemble_info *info, int mach)
 		    (data[i] << 16) | (data[i + 1] << 8) | (data[i + 2]);
 		  cstlen[opnr] = 24;
 		}
-	      else if (looking_for & IGNORE)
-		{
-		  ;
-		}
 	      else if (looking_for & DISPREG)
 		{
 		  dispregno[opnr] = thisnib & 7;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]