diff options
author | eivind <eivind@FreeBSD.org> | 1999-11-13 14:35:50 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1999-11-13 14:35:50 +0000 |
commit | 6d6289a5a6f16783626158871ea7fdaae1f99401 (patch) | |
tree | 9d417f5241e2debe71db625e88ac1cef91d96615 | |
parent | a789052c0619737254c0ab2afae0f5fff1663dcf (diff) | |
download | FreeBSD-src-6d6289a5a6f16783626158871ea7fdaae1f99401.zip FreeBSD-src-6d6289a5a6f16783626158871ea7fdaae1f99401.tar.gz |
Fix style bugs from last commit
-rw-r--r-- | sys/kern/vfs_extattr.c | 10 | ||||
-rw-r--r-- | sys/kern/vfs_syscalls.c | 10 |
2 files changed, 8 insertions, 12 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 62252b4..2f4aa01 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -1142,9 +1142,8 @@ mknod(p, uap) } else { error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr); - if (error == 0) { - vput(nd.ni_vp); - } + if (error == 0) + vput(nd.ni_vp); vput(nd.ni_dvp); } } else { @@ -1200,9 +1199,8 @@ mkfifo(p, uap) vattr.va_mode = (SCARG(uap, mode) & ALLPERMS) &~ p->p_fd->fd_cmask; VOP_LEASE(nd.ni_dvp, p, p->p_ucred, LEASE_WRITE); error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr); - if (error == 0) { - vput(nd.ni_vp); - } + if (error == 0) + vput(nd.ni_vp); vput(nd.ni_dvp); return (error); } diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 62252b4..2f4aa01 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1142,9 +1142,8 @@ mknod(p, uap) } else { error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr); - if (error == 0) { - vput(nd.ni_vp); - } + if (error == 0) + vput(nd.ni_vp); vput(nd.ni_dvp); } } else { @@ -1200,9 +1199,8 @@ mkfifo(p, uap) vattr.va_mode = (SCARG(uap, mode) & ALLPERMS) &~ p->p_fd->fd_cmask; VOP_LEASE(nd.ni_dvp, p, p->p_ucred, LEASE_WRITE); error = VOP_MKNOD(nd.ni_dvp, &nd.ni_vp, &nd.ni_cnd, &vattr); - if (error == 0) { - vput(nd.ni_vp); - } + if (error == 0) + vput(nd.ni_vp); vput(nd.ni_dvp); return (error); } |