Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Feb 2023 21:15:19 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: ba34de1b3bf9 - main - vmm: Remove an unneeded initialization of "retu"
Message-ID:  <202302092115.319LFJiW042985@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=ba34de1b3bf965d15f6c76c97fa7e6d17194d401

commit ba34de1b3bf965d15f6c76c97fa7e6d17194d401
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-02-09 20:51:11 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-02-09 21:14:33 +0000

    vmm: Remove an unneeded initialization of "retu"
    
    vm_handle_ipi() unconditionally initializes "retu".  No functional
    change intended.
    
    Reviewed by:    jhb, corvink
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D38446
---
 sys/amd64/vmm/vmm.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sys/amd64/vmm/vmm.c b/sys/amd64/vmm/vmm.c
index 7327bf6f40be..9f5fc124f4ff 100644
--- a/sys/amd64/vmm/vmm.c
+++ b/sys/amd64/vmm/vmm.c
@@ -1930,10 +1930,8 @@ restart:
 	 * VM_EXITCODE_INST_EMUL could access the apic which could transform the
 	 * exit code into VM_EXITCODE_IPI.
 	 */
-	if (error == 0 && vme->exitcode == VM_EXITCODE_IPI) {
-		retu = false;
+	if (error == 0 && vme->exitcode == VM_EXITCODE_IPI)
 		error = vm_handle_ipi(vcpu, vme, &retu);
-	}
 
 	if (error == 0 && retu == false)
 		goto restart;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302092115.319LFJiW042985>