summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2001-02-25 16:18:13 +0000
committerjake <jake@FreeBSD.org>2001-02-25 16:18:13 +0000
commitdf76fc11c8934bdc3191205f9433e3a2443d66ae (patch)
treefb87384eacc961b07057a13d2376773aaad6a05e /sys/kern
parent3b8f8e993826da4fcb2243fc5f40428034f61670 (diff)
downloadFreeBSD-src-df76fc11c8934bdc3191205f9433e3a2443d66ae.zip
FreeBSD-src-df76fc11c8934bdc3191205f9433e3a2443d66ae.tar.gz
Remove brackets around variables in a function that used to be
a macro.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_mutex.c20
-rw-r--r--sys/kern/subr_turnstile.c20
-rw-r--r--sys/kern/subr_witness.c20
3 files changed, 30 insertions, 30 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
index e378bed..2e7ef30 100644
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -602,26 +602,26 @@ _mtx_unlock_sleep(struct mtx *m, int opts, const char *file, int line)
void
_mtx_assert(struct mtx *m, int what, const char *file, int line)
{
- switch ((what)) {
+ switch (what) {
case MA_OWNED:
case MA_OWNED | MA_RECURSED:
case MA_OWNED | MA_NOTRECURSED:
- if (!mtx_owned((m)))
+ if (!mtx_owned(m))
panic("mutex %s not owned at %s:%d",
- (m)->mtx_description, file, line);
- if (mtx_recursed((m))) {
- if (((what) & MA_NOTRECURSED) != 0)
+ m->mtx_description, file, line);
+ if (mtx_recursed(m)) {
+ if ((what & MA_NOTRECURSED) != 0)
panic("mutex %s recursed at %s:%d",
- (m)->mtx_description, file, line);
- } else if (((what) & MA_RECURSED) != 0) {
+ m->mtx_description, file, line);
+ } else if ((what & MA_RECURSED) != 0) {
panic("mutex %s unrecursed at %s:%d",
- (m)->mtx_description, file, line);
+ m->mtx_description, file, line);
}
break;
case MA_NOTOWNED:
- if (mtx_owned((m)))
+ if (mtx_owned(m))
panic("mutex %s owned at %s:%d",
- (m)->mtx_description, file, line);
+ m->mtx_description, file, line);
break;
default:
panic("unknown mtx_assert at %s:%d", file, line);
diff --git a/sys/kern/subr_turnstile.c b/sys/kern/subr_turnstile.c
index e378bed..2e7ef30 100644
--- a/sys/kern/subr_turnstile.c
+++ b/sys/kern/subr_turnstile.c
@@ -602,26 +602,26 @@ _mtx_unlock_sleep(struct mtx *m, int opts, const char *file, int line)
void
_mtx_assert(struct mtx *m, int what, const char *file, int line)
{
- switch ((what)) {
+ switch (what) {
case MA_OWNED:
case MA_OWNED | MA_RECURSED:
case MA_OWNED | MA_NOTRECURSED:
- if (!mtx_owned((m)))
+ if (!mtx_owned(m))
panic("mutex %s not owned at %s:%d",
- (m)->mtx_description, file, line);
- if (mtx_recursed((m))) {
- if (((what) & MA_NOTRECURSED) != 0)
+ m->mtx_description, file, line);
+ if (mtx_recursed(m)) {
+ if ((what & MA_NOTRECURSED) != 0)
panic("mutex %s recursed at %s:%d",
- (m)->mtx_description, file, line);
- } else if (((what) & MA_RECURSED) != 0) {
+ m->mtx_description, file, line);
+ } else if ((what & MA_RECURSED) != 0) {
panic("mutex %s unrecursed at %s:%d",
- (m)->mtx_description, file, line);
+ m->mtx_description, file, line);
}
break;
case MA_NOTOWNED:
- if (mtx_owned((m)))
+ if (mtx_owned(m))
panic("mutex %s owned at %s:%d",
- (m)->mtx_description, file, line);
+ m->mtx_description, file, line);
break;
default:
panic("unknown mtx_assert at %s:%d", file, line);
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index e378bed..2e7ef30 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -602,26 +602,26 @@ _mtx_unlock_sleep(struct mtx *m, int opts, const char *file, int line)
void
_mtx_assert(struct mtx *m, int what, const char *file, int line)
{
- switch ((what)) {
+ switch (what) {
case MA_OWNED:
case MA_OWNED | MA_RECURSED:
case MA_OWNED | MA_NOTRECURSED:
- if (!mtx_owned((m)))
+ if (!mtx_owned(m))
panic("mutex %s not owned at %s:%d",
- (m)->mtx_description, file, line);
- if (mtx_recursed((m))) {
- if (((what) & MA_NOTRECURSED) != 0)
+ m->mtx_description, file, line);
+ if (mtx_recursed(m)) {
+ if ((what & MA_NOTRECURSED) != 0)
panic("mutex %s recursed at %s:%d",
- (m)->mtx_description, file, line);
- } else if (((what) & MA_RECURSED) != 0) {
+ m->mtx_description, file, line);
+ } else if ((what & MA_RECURSED) != 0) {
panic("mutex %s unrecursed at %s:%d",
- (m)->mtx_description, file, line);
+ m->mtx_description, file, line);
}
break;
case MA_NOTOWNED:
- if (mtx_owned((m)))
+ if (mtx_owned(m))
panic("mutex %s owned at %s:%d",
- (m)->mtx_description, file, line);
+ m->mtx_description, file, line);
break;
default:
panic("unknown mtx_assert at %s:%d", file, line);
OpenPOWER on IntegriCloud