diff options
author | araujo <araujo@FreeBSD.org> | 2015-12-31 07:08:21 +0000 |
---|---|---|
committer | araujo <araujo@FreeBSD.org> | 2015-12-31 07:08:21 +0000 |
commit | f943a0f8bd775b2658a33cf53c209586a0fdc030 (patch) | |
tree | e4a30670c0bed23bcca0c756c75556dbafac657d /usr.sbin | |
parent | 124836f75ca4c8f12ae92df67fac8015adc2ed0f (diff) | |
download | FreeBSD-src-f943a0f8bd775b2658a33cf53c209586a0fdc030.zip FreeBSD-src-f943a0f8bd775b2658a33cf53c209586a0fdc030.tar.gz |
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
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bhyve/bhyverun.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/bhyve/bhyverun.c b/usr.sbin/bhyve/bhyverun.c index 4fd9c35..cb29a48 100644 --- a/usr.sbin/bhyve/bhyverun.c +++ b/usr.sbin/bhyve/bhyverun.c @@ -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, 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", @@ -629,7 +626,7 @@ vm_loop(struct vmctx *ctx, int vcpu, uint64_t startrip) exit(1); } - rc = (*handler[exitcode])(ctx, &vmexit[vcpu], &vcpu); + rc = (*handler[exitcode])(ctx, &vmexit[vcpu], &vcpu); switch (rc) { case VMEXIT_CONTINUE: |