Remove spurious condition in test for closing parenthesis.
authorYoshinori Sato <ysato@users.sourceforge.jp>
Wed, 13 Jan 2016 17:47:34 +0000 (17:47 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 13 Jan 2016 17:47:34 +0000 (17:47 +0000)
* config/tc-h8300.c (get_operand): Remove spurious condition in
test for closing parenthesis.

gas/ChangeLog
gas/config/tc-h8300.c

index 4db90f6..0b9f95b 100644 (file)
@@ -1,3 +1,8 @@
+2016-01-13  Yoshinori Sato  <ysato@users.sourceforge.jp>
+
+       * config/tc-h8300.c (get_operand): Remove spurious condition in
+       test for closing parenthesis.
+
 2016-01-12  Matthew Wahab  <matthew.wahab@arm.com>
 
        * config/tc-arm.c (arm_ext_v8_2): New.
index 72e5cec..063c40d 100644 (file)
@@ -826,7 +826,7 @@ get_operand (char **ptr, struct h8_op *op, int direction)
            op->mode |= DISP | direction;
          src = skip_colonthing (src, &op->mode);
 
-         if (*src != ')' && '(')
+         if (*src != ')')
            {
              as_bad (_("expected @(exp, reg16)"));
              return;