git: 0b0e5ae2beaf - stable/13 - vmm: Remove an unneeded initialization of "retu"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 16 Feb 2023 22:39:35 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=0b0e5ae2beafc7c82133427c54672c4bc3df9ea9 commit 0b0e5ae2beafc7c82133427c54672c4bc3df9ea9 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2023-02-09 20:51:11 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2023-02-16 21:55:44 +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 (cherry picked from commit ba34de1b3bf965d15f6c76c97fa7e6d17194d401) --- 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 123d35a983c0..692b8c991310 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;