Skip to content

Commit f804dc6

Browse files
Dan Carpentersean-jc
authored andcommitted
KVM: x86: clean up a return
Returning a literal X86EMUL_CONTINUE is slightly clearer than returning rc. Signed-off-by: Dan Carpenter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
1 parent ead4dac commit f804dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/kvm/x86.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8021,7 +8021,7 @@ static int emulator_read_write(struct x86_emulate_ctxt *ctxt,
80218021
return rc;
80228022

80238023
if (!vcpu->mmio_nr_fragments)
8024-
return rc;
8024+
return X86EMUL_CONTINUE;
80258025

80268026
gpa = vcpu->mmio_fragments[0].gpa;
80278027

0 commit comments

Comments
 (0)