From owner-svn-src-all@FreeBSD.ORG Wed Jun 13 21:11:59 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1B6641065687; Wed, 13 Jun 2012 21:11:59 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [69.147.83.44]) by mx1.freebsd.org (Postfix) with ESMTP id 05D318FC18; Wed, 13 Jun 2012 21:11:59 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q5DLBwtD049124; Wed, 13 Jun 2012 21:11:58 GMT (envelope-from pjd@svn.freebsd.org) Received: (from pjd@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q5DLBwDV049122; Wed, 13 Jun 2012 21:11:58 GMT (envelope-from pjd@svn.freebsd.org) Message-Id: <201206132111.q5DLBwDV049122@svn.freebsd.org> From: Pawel Jakub Dawidek Date: Wed, 13 Jun 2012 21:11:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r237029 - head/sys/kern X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Wed, 13 Jun 2012 21:11:59 -0000 Author: pjd Date: Wed Jun 13 21:11:58 2012 New Revision: 237029 URL: http://svn.freebsd.org/changeset/base/237029 Log: Style. MFC after: 1 month Modified: head/sys/kern/vfs_syscalls.c Modified: head/sys/kern/vfs_syscalls.c ============================================================================== --- head/sys/kern/vfs_syscalls.c Wed Jun 13 21:10:00 2012 (r237028) +++ head/sys/kern/vfs_syscalls.c Wed Jun 13 21:11:58 2012 (r237029) @@ -1111,13 +1111,14 @@ kern_openat(struct thread *td, int fd, c if (flags & O_EXEC) { if (flags & O_ACCMODE) return (EINVAL); - } else if ((flags & O_ACCMODE) == O_ACCMODE) + } else if ((flags & O_ACCMODE) == O_ACCMODE) { return (EINVAL); - else + } else flags = FFLAGS(flags); + } /* - * allocate the file descriptor, but don't install a descriptor yet + * Allocate the file descriptor, but don't install a descriptor yet. */ error = falloc_noinstall(td, &nfp); if (error) @@ -1141,7 +1142,7 @@ kern_openat(struct thread *td, int fd, c goto success; /* - * handle special fdopen() case. bleh. dupfdopen() is + * Handle special fdopen() case. bleh. dupfdopen() is * responsible for dropping the old contents of ofiles[indx] * if it succeeds. * @@ -1149,9 +1150,9 @@ kern_openat(struct thread *td, int fd, c * understand exactly what would happen, and we don't think * that it ever should. */ - if ((nd.ni_strictrelative == 0) && + if (nd.ni_strictrelative == 0 && (error == ENODEV || error == ENXIO) && - (td->td_dupfd >= 0)) { + td->td_dupfd >= 0) { /* XXX from fdopen */ error_open = error; if ((error = finstall(td, fp, &indx, flags)) != 0) @@ -1206,7 +1207,7 @@ kern_openat(struct thread *td, int fd, c if ((flags & FNONBLOCK) == 0) type |= F_WAIT; if ((error = VOP_ADVLOCK(vp, (caddr_t)fp, F_SETLK, &lf, - type)) != 0) + type)) != 0) goto bad; atomic_set_int(&fp->f_flag, FHASLOCK); }