From owner-svn-src-all@freebsd.org Fri Oct 30 20:47:43 2015 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D6F5FA21F7B; Fri, 30 Oct 2015 20:47:43 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9FE2C129C; Fri, 30 Oct 2015 20:47:43 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9UKlgJ3058378; Fri, 30 Oct 2015 20:47:42 GMT (envelope-from kib@FreeBSD.org) Received: (from kib@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9UKlgu0058377; Fri, 30 Oct 2015 20:47:42 GMT (envelope-from kib@FreeBSD.org) Message-Id: <201510302047.t9UKlgu0058377@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kib set sender to kib@FreeBSD.org using -f From: Konstantin Belousov Date: Fri, 30 Oct 2015 20:47:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r290206 - head/sys/kern X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Oct 2015 20:47:43 -0000 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);