diff options
author | Mark Johnston <markj@FreeBSD.org> | 2023-02-09 20:51:11 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2023-02-09 21:14:33 +0000 |
commit | ba34de1b3bf965d15f6c76c97fa7e6d17194d401 (patch) | |
tree | 31de7c84c0077c045677869288f1d54ee456dc75 | |
parent | f3bbd0e818008ddc4fbf1f6ade0f7e411b1dfee5 (diff) | |
download | src-ba34de1b3bf965d15f6c76c97fa7e6d17194d401.tar.gz src-ba34de1b3bf965d15f6c76c97fa7e6d17194d401.zip |
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
-rw-r--r-- | sys/amd64/vmm/vmm.c | 4 |
1 files changed, 1 insertions, 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; |