Skip to content

Commit ee7143c

Browse files
committed
Remove unnecessary ';'
1 parent 1f46a3d commit ee7143c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

include/xhyve/lock.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
#if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 /* __MAC_10_12 */
3030
#include <os/lock.h>
3131
#define xhyve_lock_t os_unfair_lock
32-
#define XHYVE_LOCK_INIT(V, LOCK) (V)->LOCK = OS_UNFAIR_LOCK_INIT;
32+
#define XHYVE_LOCK_INIT(V, LOCK) (V)->LOCK = OS_UNFAIR_LOCK_INIT
3333
#define XHYVE_LOCK(V, LOCK) os_unfair_lock_lock(&(V)->LOCK)
3434
#define XHYVE_UNLOCK(V, LOCK) os_unfair_lock_unlock(&(V)->LOCK)
3535
#else
3636
#include <libkern/OSAtomic.h>
3737
#define xhyve_lock_t OSSpinLock
38-
#define XHYVE_LOCK_INIT(V, LOCK) (V)->LOCK = OS_SPINLOCK_INIT;
38+
#define XHYVE_LOCK_INIT(V, LOCK) (V)->LOCK = OS_SPINLOCK_INIT
3939
#define XHYVE_LOCK(V, LOCK) OSSpinLockLock(&(V)->LOCK)
4040
#define XHYVE_UNLOCK(V, LOCK) OSSpinLockUnlock(&(V)->LOCK)
4141
#endif

src/vmm/io/vatpit.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,9 @@ vatpit_init(struct vm *vm)
423423
bzero(vatpit, sizeof(struct vatpit));
424424
vatpit->vm = vm;
425425

426-
VATPIT_LOCK_INIT(vatpit)
426+
VATPIT_LOCK_INIT(vatpit);
427427

428-
FREQ2BT(PIT_8254_FREQ, &bt);
428+
FREQ2BT(PIT_8254_FREQ, &bt)
429429
vatpit->freq_sbt = bttosbt(bt);
430430

431431
for (i = 0; i < 3; i++) {

src/vmm/io/vlapic.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ vlapic_dcr_write_handler(struct vlapic *vlapic)
232232
* XXX changes to the frequency divider will not take effect until
233233
* the timer is reloaded.
234234
*/
235-
FREQ2BT(((unsigned) (VLAPIC_BUS_FREQ / divisor)), &vlapic->timer_freq_bt);
235+
FREQ2BT(((unsigned) (VLAPIC_BUS_FREQ / divisor)), &vlapic->timer_freq_bt)
236236
vlapic->timer_period_bt = vlapic->timer_freq_bt;
237237
bintime_mul(&vlapic->timer_period_bt, lapic->icr_timer);
238238

@@ -312,7 +312,7 @@ vlapic_get_lvtptr(struct vlapic *vlapic, uint32_t offset)
312312
case APIC_OFFSET_LINT1_LVT:
313313
case APIC_OFFSET_ERROR_LVT:
314314
i = (offset - APIC_OFFSET_TIMER_LVT) >> 2;
315-
return ((&lapic->lvt_timer) + i);;
315+
return ((&lapic->lvt_timer) + i);
316316
default:
317317
xhyve_abort("vlapic_get_lvt: invalid LVT\n");
318318
}

src/vmm/vmm_callout.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static void *callout_thread_func(UNUSED void *arg) {
165165
/* wait for work */
166166
while (!callout_queue) {
167167
pthread_cond_wait(&callout_cnd, &callout_mtx);
168-
};
168+
}
169169

170170
/* get the callout with the nearest timout */
171171
c = callout_queue;
@@ -187,7 +187,7 @@ static void *callout_thread_func(UNUSED void *arg) {
187187
delta = c->timeout - mat;
188188
mat_to_ts(delta, &ts);
189189
ret = pthread_cond_timedwait_relative_np(&callout_cnd, &callout_mtx, &ts);
190-
};
190+
}
191191

192192
work = false;
193193

0 commit comments

Comments
 (0)