summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2012-12-01 19:38:47 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2013-03-02 02:45:53 +0400
commitc7ce6a4f226acd11c6b4c411a1b57ccfd05a30b1 (patch)
tree24da26ee83ebd62ef450144d20dea41acbef1438
parent4e8396b5cf3981f0746ed815ce8b6fb89146821e (diff)
downloadnasm-c7ce6a4f226acd11c6b4c411a1b57ccfd05a30b1.tar.gz
nasm-c7ce6a4f226acd11c6b4c411a1b57ccfd05a30b1.tar.bz2
nasm-c7ce6a4f226acd11c6b4c411a1b57ccfd05a30b1.zip
process_ea: Drop redundant variable
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--assemble.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/assemble.c b/assemble.c
index df0ac7d..f025360 100644
--- a/assemble.c
+++ b/assemble.c
@@ -2131,14 +2131,10 @@ static enum ea_type process_ea(operand *input, ea *output, int bits,
/*
* It's a direct register.
*/
- opflags_t f;
-
if (!is_register(input->basereg))
goto err;
- f = regflag(input);
-
- if (!is_class(REG_EA, f))
+ if (!is_class(REG_EA, regflag(input)))
goto err;
output->rex |= op_rexflags(input, REX_B | REX_P | REX_W | REX_H);