summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorNikolay Borisov <nik.borisov@suse.com>2024-02-22 13:16:36 +0200
committerIngo Molnar <mingo@kernel.org>2024-02-22 12:23:27 +0100
commit07a5d4bcbf8e70a430431991f185eb29e74ae533 (patch)
tree1b88ee63167f35532e5b9852f27a347616ef1037 /arch/x86
parent427e1646f1ef6c714a5bade30ca0302edc5d46a0 (diff)
x86/insn: Directly assign x86_64 state in insn_init()
No point in checking again as this was already done by the caller. Signed-off-by: Nikolay Borisov <nik.borisov@suse.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Cc: Josh Poimboeuf <jpoimboe@redhat.com> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/20240222111636.2214523-3-nik.borisov@suse.com
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/lib/insn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/lib/insn.c b/arch/x86/lib/insn.c
index 3946bdc75087..1bb155a0955b 100644
--- a/arch/x86/lib/insn.c
+++ b/arch/x86/lib/insn.c
@@ -71,7 +71,7 @@ void insn_init(struct insn *insn, const void *kaddr, int buf_len, int x86_64)
insn->kaddr = kaddr;
insn->end_kaddr = kaddr + buf_len;
insn->next_byte = kaddr;
- insn->x86_64 = x86_64 ? 1 : 0;
+ insn->x86_64 = x86_64;
insn->opnd_bytes = 4;
if (x86_64)
insn->addr_bytes = 8;