1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-12 14:29:28 +00:00

Style fixes.

This commit is contained in:
Edward Tomasz Napierala 2009-11-04 07:04:15 +00:00
parent 8fafa5cecf
commit da9ce28ecb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=198875

View File

@ -213,7 +213,7 @@ vacl_set_acl(struct thread *td, struct vnode *vp, acl_type_t type,
inkernelacl = acl_alloc(M_WAITOK);
error = acl_copyin(aclp, inkernelacl, type);
if (error)
if (error != 0)
goto out;
error = vn_start_write(vp, &mp, V_WAIT | PCATCH);
if (error != 0)
@ -233,7 +233,7 @@ vacl_set_acl(struct thread *td, struct vnode *vp, acl_type_t type,
vn_finished_write(mp);
out:
acl_free(inkernelacl);
return(error);
return (error);
}
/*
@ -276,12 +276,12 @@ vacl_delete(struct thread *td, struct vnode *vp, acl_type_t type)
int error;
error = vn_start_write(vp, &mp, V_WAIT | PCATCH);
if (error)
if (error != 0)
return (error);
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
#ifdef MAC
error = mac_vnode_check_deleteacl(td->td_ucred, vp, type);
if (error)
if (error != 0)
goto out;
#endif
error = VOP_SETACL(vp, acl_type_unold(type), 0, td->td_ucred, td);
@ -305,7 +305,7 @@ vacl_aclcheck(struct thread *td, struct vnode *vp, acl_type_t type,
inkernelacl = acl_alloc(M_WAITOK);
error = acl_copyin(aclp, inkernelacl, type);
if (error)
if (error != 0)
goto out;
error = VOP_ACLCHECK(vp, type, inkernelacl, td->td_ucred, td);
out:
@ -501,7 +501,7 @@ __acl_delete_fd(struct thread *td, struct __acl_delete_fd_args *uap)
int
__acl_aclcheck_file(struct thread *td, struct __acl_aclcheck_file_args *uap)
{
struct nameidata nd;
struct nameidata nd;
int vfslocked, error;
NDINIT(&nd, LOOKUP, MPSAFE|FOLLOW, UIO_USERSPACE, uap->path, td);
@ -521,7 +521,7 @@ __acl_aclcheck_file(struct thread *td, struct __acl_aclcheck_file_args *uap)
int
__acl_aclcheck_link(struct thread *td, struct __acl_aclcheck_link_args *uap)
{
struct nameidata nd;
struct nameidat nd;
int vfslocked, error;
NDINIT(&nd, LOOKUP, MPSAFE|NOFOLLOW, UIO_USERSPACE, uap->path, td);