aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2015-10-30 20:47:42 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2015-10-30 20:47:42 +0000
commit50657fd342bcf1886e5b6d2c74605bbdd6b91bed (patch)
treec4eb7d7136f35809c69784ad6d275a232303be11
parent8e5bdf761c492b1a0e70488a29dce87ba0a28c25 (diff)
downloadsrc-50657fd342bcf1886e5b6d2c74605bbdd6b91bed.tar.gz
src-50657fd342bcf1886e5b6d2c74605bbdd6b91bed.zip
Minor (and incomplete) style cleanup.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=290206
-rw-r--r--sys/kern/kern_umtx.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
index 535d34c8697c..681120fd45ba 100644
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -813,7 +813,7 @@ umtx_key_get(const void *addr, int type, int share, struct umtx_key *key)
if (vm_map_lookup(&map, (vm_offset_t)addr, VM_PROT_WRITE,
&entry, &key->info.shared.object, &pindex, &prot,
&wired) != KERN_SUCCESS) {
- return EFAULT;
+ return (EFAULT);
}
if ((share == PROCESS_SHARE) ||
@@ -1163,7 +1163,7 @@ do_wake2_umutex(struct thread *td, struct umutex *m, uint32_t flags)
int error;
int count;
- switch(flags & (UMUTEX_PRIO_INHERIT | UMUTEX_PRIO_PROTECT)) {
+ switch (flags & (UMUTEX_PRIO_INHERIT | UMUTEX_PRIO_PROTECT)) {
case 0:
type = TYPE_NORMAL_UMUTEX;
break;
@@ -3402,14 +3402,16 @@ __umtx_op_sem_wait(struct thread *td, struct _umtx_op_args *uap)
static int
__umtx_op_sem_wake(struct thread *td, struct _umtx_op_args *uap)
{
- return do_sem_wake(td, uap->obj);
+
+ return (do_sem_wake(td, uap->obj));
}
#endif
static int
__umtx_op_wake2_umutex(struct thread *td, struct _umtx_op_args *uap)
{
- return do_wake2_umutex(td, uap->obj, uap->val);
+
+ return (do_wake2_umutex(td, uap->obj, uap->val));
}
static int
@@ -3434,7 +3436,8 @@ __umtx_op_sem2_wait(struct thread *td, struct _umtx_op_args *uap)
static int
__umtx_op_sem2_wake(struct thread *td, struct _umtx_op_args *uap)
{
- return do_sem2_wake(td, uap->obj);
+
+ return (do_sem2_wake(td, uap->obj));
}
typedef int (*_umtx_op_func)(struct thread *td, struct _umtx_op_args *uap);