]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
KVM: x86: clean up a return
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 24 Mar 2025 10:53:39 +0000 (13:53 +0300)
committerSean Christopherson <seanjc@google.com>
Thu, 24 Apr 2025 18:18:33 +0000 (11:18 -0700)
Returning a literal X86EMUL_CONTINUE is slightly clearer than returning
rc.

Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/7604cbbf-15e6-45a8-afec-cf5be46c2924@stanley.mountain
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c

index f6ce044b090a17cb17e0dfe4caf46f2691a75aa9..e31dc57e1afa95e62d18f11f2a4b264db5ee58e1 100644 (file)
@@ -8021,7 +8021,7 @@ static int emulator_read_write(struct x86_emulate_ctxt *ctxt,
                return rc;
 
        if (!vcpu->mmio_nr_fragments)
-               return rc;
+               return X86EMUL_CONTINUE;
 
        gpa = vcpu->mmio_fragments[0].gpa;