From ee7143c82a3b5a6a792ece948428686089dfd55b Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Fri, 13 Dec 2019 16:54:45 +0100 Subject: [PATCH] Remove unnecessary ';' --- include/xhyve/lock.h | 4 ++-- src/vmm/io/vatpit.c | 4 ++-- src/vmm/io/vlapic.c | 4 ++-- src/vmm/vmm_callout.c | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/xhyve/lock.h b/include/xhyve/lock.h index 7d33c7f..db30c86 100644 --- a/include/xhyve/lock.h +++ b/include/xhyve/lock.h @@ -29,13 +29,13 @@ #if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 /* __MAC_10_12 */ #include #define xhyve_lock_t os_unfair_lock - #define XHYVE_LOCK_INIT(V, LOCK) (V)->LOCK = OS_UNFAIR_LOCK_INIT; + #define XHYVE_LOCK_INIT(V, LOCK) (V)->LOCK = OS_UNFAIR_LOCK_INIT #define XHYVE_LOCK(V, LOCK) os_unfair_lock_lock(&(V)->LOCK) #define XHYVE_UNLOCK(V, LOCK) os_unfair_lock_unlock(&(V)->LOCK) #else #include #define xhyve_lock_t OSSpinLock - #define XHYVE_LOCK_INIT(V, LOCK) (V)->LOCK = OS_SPINLOCK_INIT; + #define XHYVE_LOCK_INIT(V, LOCK) (V)->LOCK = OS_SPINLOCK_INIT #define XHYVE_LOCK(V, LOCK) OSSpinLockLock(&(V)->LOCK) #define XHYVE_UNLOCK(V, LOCK) OSSpinLockUnlock(&(V)->LOCK) #endif diff --git a/src/vmm/io/vatpit.c b/src/vmm/io/vatpit.c index dd66664..fe6c166 100644 --- a/src/vmm/io/vatpit.c +++ b/src/vmm/io/vatpit.c @@ -423,9 +423,9 @@ vatpit_init(struct vm *vm) bzero(vatpit, sizeof(struct vatpit)); vatpit->vm = vm; - VATPIT_LOCK_INIT(vatpit) + VATPIT_LOCK_INIT(vatpit); - FREQ2BT(PIT_8254_FREQ, &bt); + FREQ2BT(PIT_8254_FREQ, &bt) vatpit->freq_sbt = bttosbt(bt); for (i = 0; i < 3; i++) { diff --git a/src/vmm/io/vlapic.c b/src/vmm/io/vlapic.c index 62cac32..24d168f 100644 --- a/src/vmm/io/vlapic.c +++ b/src/vmm/io/vlapic.c @@ -232,7 +232,7 @@ vlapic_dcr_write_handler(struct vlapic *vlapic) * XXX changes to the frequency divider will not take effect until * the timer is reloaded. */ - FREQ2BT(((unsigned) (VLAPIC_BUS_FREQ / divisor)), &vlapic->timer_freq_bt); + FREQ2BT(((unsigned) (VLAPIC_BUS_FREQ / divisor)), &vlapic->timer_freq_bt) vlapic->timer_period_bt = vlapic->timer_freq_bt; bintime_mul(&vlapic->timer_period_bt, lapic->icr_timer); @@ -312,7 +312,7 @@ vlapic_get_lvtptr(struct vlapic *vlapic, uint32_t offset) case APIC_OFFSET_LINT1_LVT: case APIC_OFFSET_ERROR_LVT: i = (offset - APIC_OFFSET_TIMER_LVT) >> 2; - return ((&lapic->lvt_timer) + i);; + return ((&lapic->lvt_timer) + i); default: xhyve_abort("vlapic_get_lvt: invalid LVT\n"); } diff --git a/src/vmm/vmm_callout.c b/src/vmm/vmm_callout.c index 73011fe..7ff91e9 100644 --- a/src/vmm/vmm_callout.c +++ b/src/vmm/vmm_callout.c @@ -165,7 +165,7 @@ static void *callout_thread_func(UNUSED void *arg) { /* wait for work */ while (!callout_queue) { pthread_cond_wait(&callout_cnd, &callout_mtx); - }; + } /* get the callout with the nearest timout */ c = callout_queue; @@ -187,7 +187,7 @@ static void *callout_thread_func(UNUSED void *arg) { delta = c->timeout - mat; mat_to_ts(delta, &ts); ret = pthread_cond_timedwait_relative_np(&callout_cnd, &callout_mtx, &ts); - }; + } work = false;