x86/insn: Remove superfluous checks from instruction decoding routines
authorNikolay Borisov <nik.borisov@suse.com>
Thu, 22 Feb 2024 11:16:35 +0000 (13:16 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 22 Feb 2024 11:23:04 +0000 (12:23 +0100)
commit427e1646f1ef6c714a5bade30ca0302edc5d46a0
tree814ea31b6955a17180257dd117438bd7ace01fdd
parentb401b621758e46812da61fa58a67c3fd8d91de0d
x86/insn: Remove superfluous checks from instruction decoding routines

It's pointless checking if a particular part of an instruction is
decoded before calling the routine responsible for decoding it as this
check is duplicated in the routines itself. Streamline the code by
removing the superfluous checks. No functional difference.

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-2-nik.borisov@suse.com
arch/x86/lib/insn.c
tools/arch/x86/lib/insn.c