Fix a typo where the same name was checked twice.
authorNick Clifton <nickc@redhat.com>
Tue, 11 Aug 2015 08:36:57 +0000 (09:36 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 11 Aug 2015 08:36:57 +0000 (09:36 +0100)
PR gas/18679
* config/xtensa-relax.c (same_operand_name): Fix typo.

gas/ChangeLog
gas/config/xtensa-relax.c

index 79de86a6eab90082bab77fbdc852f6586fede2ef..19579776d6337b651afcee0e1feb93d7434e3957 100644 (file)
@@ -1,3 +1,8 @@
+2015-08-11  Nick Clifton  <nickc@redhat.com>
+
+       PR gas/18679
+       * config/xtensa-relax.c (same_operand_name): Fix typo.
+
 2015-08-08  Hans-Peter Nilsson  <hp@axis.com>
 
        * tc-arm.c (double_to_single, is_double_a_single): Append ULL to
index 688d5f37d045fe599eb0f7b3f57472380be15585..4b999d5a20d0002612f350702e617668d7316b54 100644 (file)
@@ -869,7 +869,7 @@ clear_opname_map (opname_map *m)
 static bfd_boolean
 same_operand_name (const opname_map_e *m1, const opname_map_e *m2)
 {
-  if (m1->operand_name == NULL || m1->operand_name == NULL)
+  if (m1->operand_name == NULL || m2->operand_name == NULL)
     return FALSE;
   return (m1->operand_name == m2->operand_name);
 }