summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2006-08-17 22:50:33 +0000
committerimp <imp@FreeBSD.org>2006-08-17 22:50:33 +0000
commitdb85f415fa8cd00a377c51e17e5449cbbfe54f2d (patch)
treeebf398010668cc2bb542a2cd863c39769afc3743 /sys
parentff9e3178175b11cd7809c6ada10182a3554f2397 (diff)
downloadFreeBSD-src-db85f415fa8cd00a377c51e17e5449cbbfe54f2d.zip
FreeBSD-src-db85f415fa8cd00a377c51e17e5449cbbfe54f2d.tar.gz
while (0); -> while (0) in multi-line macros
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/freebsd32/freebsd32.h2
-rw-r--r--sys/compat/ndis/ntoskrnl_var.h3
-rw-r--r--sys/dev/arl/if_arlreg.h2
-rw-r--r--sys/dev/ath/if_athvar.h2
-rw-r--r--sys/dev/ips/ips.h2
-rw-r--r--sys/fs/msdosfs/denode.h2
-rw-r--r--sys/geom/vinum/geom_vinum_raid5.h2
7 files changed, 7 insertions, 8 deletions
diff --git a/sys/compat/freebsd32/freebsd32.h b/sys/compat/freebsd32/freebsd32.h
index 806b2ff..cea8687 100644
--- a/sys/compat/freebsd32/freebsd32.h
+++ b/sys/compat/freebsd32/freebsd32.h
@@ -45,7 +45,7 @@ struct timeval32 {
#define TV_CP(src,dst,fld) do { \
CP((src).fld,(dst).fld,tv_sec); \
CP((src).fld,(dst).fld,tv_usec); \
-} while (0);
+} while (0)
struct timespec32 {
u_int32_t tv_sec;
diff --git a/sys/compat/ndis/ntoskrnl_var.h b/sys/compat/ndis/ntoskrnl_var.h
index 01caaed..751f6aa 100644
--- a/sys/compat/ndis/ntoskrnl_var.h
+++ b/sys/compat/ndis/ntoskrnl_var.h
@@ -1257,8 +1257,7 @@ typedef struct work_queue_item work_queue_item;
(w)->wqi_func = (func); \
(w)->wqi_ctx = (ctx); \
InitializeListHead(&((w)->wqi_entry)); \
- } while (0); \
-
+ } while (0)
/*
* FreeBSD's kernel stack is 2 pages in size by default. The
diff --git a/sys/dev/arl/if_arlreg.h b/sys/dev/arl/if_arlreg.h
index 49982cb..161ee46 100644
--- a/sys/dev/arl/if_arlreg.h
+++ b/sys/dev/arl/if_arlreg.h
@@ -322,7 +322,7 @@ struct arl_softc {
for (i = cnt; i && ar->resetFlag; i--) { \
DELAY(delay); \
} \
- } while (0);
+ } while (0)
#ifdef _KERNEL
void arl_release_resources (device_t);
diff --git a/sys/dev/ath/if_athvar.h b/sys/dev/ath/if_athvar.h
index b96c062..46f7308 100644
--- a/sys/dev/ath/if_athvar.h
+++ b/sys/dev/ath/if_athvar.h
@@ -149,7 +149,7 @@ struct ath_txq {
snprintf((_tq)->axq_name, sizeof((_tq)->axq_name), "%s_txq%u", \
device_get_nameunit((_sc)->sc_dev), (_tq)->axq_qnum); \
mtx_init(&(_tq)->axq_lock, (_tq)->axq_name, "ath_txq", MTX_DEF); \
-} while (0);
+} while (0)
#define ATH_TXQ_LOCK_DESTROY(_tq) mtx_destroy(&(_tq)->axq_lock)
#define ATH_TXQ_LOCK(_tq) mtx_lock(&(_tq)->axq_lock)
#define ATH_TXQ_UNLOCK(_tq) mtx_unlock(&(_tq)->axq_lock)
diff --git a/sys/dev/ips/ips.h b/sys/dev/ips/ips.h
index 4df3f2d..1b32164 100644
--- a/sys/dev/ips/ips.h
+++ b/sys/dev/ips/ips.h
@@ -74,7 +74,7 @@ MALLOC_DECLARE(M_IPSBUF);
#define ips_set_error(command, error) do { \
(command)->status.fields.basic_status = IPS_DRV_ERROR; \
(command)->status.fields.reserved = ((error) & 0x0f); \
-} while (0);
+} while (0)
#ifndef IPS_DEBUG
#define DEVICE_PRINTF(x...)
diff --git a/sys/fs/msdosfs/denode.h b/sys/fs/msdosfs/denode.h
index cbba8e7..d77d8e1 100644
--- a/sys/fs/msdosfs/denode.h
+++ b/sys/fs/msdosfs/denode.h
@@ -241,7 +241,7 @@ struct denode {
(dep)->de_flag |= DE_MODIFIED; \
} \
(dep)->de_flag &= ~(DE_UPDATE | DE_CREATE | DE_ACCESS); \
-} while (0);
+} while (0)
/*
* This overlays the fid structure (see mount.h)
diff --git a/sys/geom/vinum/geom_vinum_raid5.h b/sys/geom/vinum/geom_vinum_raid5.h
index 747307d..804920e 100644
--- a/sys/geom/vinum/geom_vinum_raid5.h
+++ b/sys/geom/vinum/geom_vinum_raid5.h
@@ -45,7 +45,7 @@
pbp = pbp->bio_caller1; \
pbp->bio_caller1 = cbp; \
} \
- } while (0);
+ } while (0)
struct gv_raid5_packet {
caddr_t data; /* Data buffer of this sub-request- */
OpenPOWER on IntegriCloud