Date: Fri, 30 Oct 2015 20:47:42 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r290206 - head/sys/kern Message-ID: <201510302047.t9UKlgu0058377@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Fri Oct 30 20:47:42 2015 New Revision: 290206 URL: https://svnweb.freebsd.org/changeset/base/290206 Log: Minor (and incomplete) style cleanup. Sponsored by: The FreeBSD Foundation MFC after: 1 week Modified: head/sys/kern/kern_umtx.c Modified: head/sys/kern/kern_umtx.c ============================================================================== --- head/sys/kern/kern_umtx.c Fri Oct 30 20:14:32 2015 (r290205) +++ head/sys/kern/kern_umtx.c Fri Oct 30 20:47:42 2015 (r290206) @@ -813,7 +813,7 @@ umtx_key_get(const void *addr, int type, 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, struc 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, st 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, s 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510302047.t9UKlgu0058377>