summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/dalvik/instruction.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/arch/dalvik/instruction.c b/src/arch/dalvik/instruction.c
index 065c67a..f0e679f 100644
--- a/src/arch/dalvik/instruction.c
+++ b/src/arch/dalvik/instruction.c
@@ -446,16 +446,8 @@ DalvikOpcodes g_dalvik_instruction_get_opcode(const GDalvikInstruction *instr)
DalvikOpcodes dalvik_guess_next_instruction(const bin_t *data, off_t pos, off_t len)
{
DalvikOpcodes result; /* Identifiant à retourner */
- bin_t opcode; /* Opcode à trouver */
- opcode = data[pos];
-
- for (result = 0; result < DOP_COUNT; result++)
- {
- if (_instructions[result].opcode == opcode)
- break;
-
- }
+ result = (DalvikOpcodes)data[pos];
/* Si l'instruction est marquée comme non utilisée... */
if (_instructions[result].keyword == NULL)