svn commit: r292981 - head/usr.sbin/bhyve
Marcelo Araujo
araujo at FreeBSD.org
Thu Dec 31 07:08:23 UTC 2015
Author: araujo
Date: Thu Dec 31 07:08:21 2015
New Revision: 292981
URL: https://svnweb.freebsd.org/changeset/base/292981
Log:
Clean up unused-but-set-variable spotted by gcc-4.9.
Reviewed by: grehan
Approved by: rodrigc (mentor)
Differential Revision: https://reviews.freebsd.org/D4734
Modified:
head/usr.sbin/bhyve/bhyverun.c
Modified: head/usr.sbin/bhyve/bhyverun.c
==============================================================================
--- head/usr.sbin/bhyve/bhyverun.c Thu Dec 31 07:03:41 2015 (r292980)
+++ head/usr.sbin/bhyve/bhyverun.c Thu Dec 31 07:08:21 2015 (r292981)
@@ -310,14 +310,13 @@ static int
vmexit_inout(struct vmctx *ctx, struct vm_exit *vme, int *pvcpu)
{
int error;
- int bytes, port, in, out, string;
+ int bytes, port, in, out;
int vcpu;
vcpu = *pvcpu;
port = vme->u.inout.port;
bytes = vme->u.inout.bytes;
- string = vme->u.inout.string;
in = vme->u.inout.in;
out = !in;
@@ -620,8 +619,6 @@ vm_loop(struct vmctx *ctx, int vcpu, uin
if (error != 0)
break;
- prevcpu = vcpu;
-
exitcode = vmexit[vcpu].exitcode;
if (exitcode >= VM_EXITCODE_MAX || handler[exitcode] == NULL) {
fprintf(stderr, "vm_loop: unexpected exitcode 0x%x\n",
@@ -629,7 +626,7 @@ vm_loop(struct vmctx *ctx, int vcpu, uin
exit(1);
}
- rc = (*handler[exitcode])(ctx, &vmexit[vcpu], &vcpu);
+ rc = (*handler[exitcode])(ctx, &vmexit[vcpu], &vcpu);
switch (rc) {
case VMEXIT_CONTINUE:
More information about the svn-src-head
mailing list