summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-01-08 03:02:19 +0000
committeraraujo <araujo@FreeBSD.org>2016-01-08 03:02:19 +0000
commit2a244ee71dd1f37b450dc5f71a359d783850f45f (patch)
tree30f324632a608a38c7a2b51fd8bcd89441a361b1
parent97dfaa41167ac5dde132639f03d67fc1efb157be (diff)
downloadFreeBSD-src-2a244ee71dd1f37b450dc5f71a359d783850f45f.zip
FreeBSD-src-2a244ee71dd1f37b450dc5f71a359d783850f45f.tar.gz
MFC: r292982
Remove unused variable after r292981 to unbreak the build. MFC: r292981 Clean up unused-but-set-variable spotted by gcc-4.9. Reviewed by: ngie Approved by: rodrigc (mentor) Sponsored by: gandi.net Differential Revision: https://reviews.freebsd.org/D4773
-rw-r--r--usr.sbin/bhyve/bhyverun.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c
index 5b277af..d281dc5 100644
--- a/usr.sbin/bhyve/bhyverun.c
+++ b/usr.sbin/bhyve/bhyverun.c
@@ -307,14 +307,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;
@@ -596,7 +595,7 @@ static vmexit_handler_t handler[VM_EXITCODE_MAX] = {
static void
vm_loop(struct vmctx *ctx, int vcpu, uint64_t startrip)
{
- int error, rc, prevcpu;
+ int error, rc;
enum vm_exitcode exitcode;
cpuset_t active_cpus;
@@ -617,8 +616,6 @@ vm_loop(struct vmctx *ctx, int vcpu, uint64_t startrip)
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",
OpenPOWER on IntegriCloud