objtool: Remove redundant checks on operand type
authorJulien Thierry <jthierry@redhat.com>
Fri, 27 Mar 2020 15:28:39 +0000 (15:28 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 22 Apr 2020 08:53:49 +0000 (10:53 +0200)
commita70266b5b2e1c4262566a52f2ef16bdcde90f99b
tree15144c5d29d98b975db0489d44a4151127ce5cf5
parentaa5847270a0eba62e5ab8445163c0ac974844598
objtool: Remove redundant checks on operand type

POP operations are already in the code path where the destination
operand is OP_DEST_REG. There is no need to check the operand type
again.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
tools/objtool/check.c