summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2012-12-01 19:38:47 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2012-12-01 19:38:47 +0400
commitf0ee88040fa9363371fa8f32eb0473287884211c (patch)
tree5e7d5ec8b7504ceb0142794c9c1cc84e5dc93c21
parent3efd91865c31fefb4f61f72fb25b126b2ed5530b (diff)
downloadnasm-f0ee88040fa9363371fa8f32eb0473287884211c.tar.gz
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 4f791ec3..0561566a 100644
--- a/assemble.c
+++ b/assemble.c
@@ -2275,14 +2275,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);