PERFORCE change 146980 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Sat Aug 9 11:54:29 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=146980
Change 146980 by trasz at trasz_traszkan on 2008/08/09 11:54:02
Style fixes.
Affected files ...
.. //depot/projects/soc2008/trasz_nfs4acl/sys/kern/vfs_acl.c#8 edit
Differences ...
==== //depot/projects/soc2008/trasz_nfs4acl/sys/kern/vfs_acl.c#8 (text+ko) ====
@@ -133,7 +133,7 @@
case ACL_TYPE_ACCESS_OLD:
case ACL_TYPE_DEFAULT_OLD:
error = copyin(user_acl, &old, sizeof(struct oldacl));
- if (error)
+ if (error != 0)
break;
error = acl_copy_oldacl_into_acl(&old, kernel_acl);
break;
@@ -155,7 +155,7 @@
case ACL_TYPE_ACCESS_OLD:
case ACL_TYPE_DEFAULT_OLD:
error = acl_copy_acl_into_oldacl(kernel_acl, &old);
- if (error)
+ if (error != 0)
break;
error = copyout(&old, user_acl, sizeof(struct oldacl));
@@ -204,7 +204,7 @@
inkernelacl = uma_zalloc(acl_zone, M_WAITOK);
error = copyin_acl(aclp, inkernelacl, type);
- if (error)
+ if (error != 0)
goto out_free;
error = vn_start_write(vp, &mp, V_WAIT | PCATCH);
if (error != 0)
@@ -270,13 +270,13 @@
int error;
error = vn_start_write(vp, &mp, V_WAIT | PCATCH);
- if (error)
+ if (error != 0)
return (error);
VOP_LEASE(vp, td, td->td_ucred, LEASE_WRITE);
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, type_unold(type), 0, td->td_ucred, td);
@@ -300,7 +300,7 @@
inkernelacl = uma_zalloc(acl_zone, M_WAITOK);
error = copyin_acl(aclp, inkernelacl, type);
- if (error)
+ if (error != 0)
goto out_free;
error = VOP_ACLCHECK(vp, type_unold(type), inkernelacl,
td->td_ucred, td);
More information about the p4-projects
mailing list