@@ -229,16 +229,16 @@ static int __jffs2_set_acl(struct inode *inode,
int xprefix, struct posix_acl *a
int jffs2_set_acl(struct inode *inode, struct posix_acl *acl, int
type)
{
- int rc, xprefix;
+ int rc, xprefix, not_equiv;
switch (type) {
case ACL_TYPE_ACCESS:
xprefix = JFFS2_XPREFIX_ACL_ACCESS;
if (acl) {
umode_t mode = inode->i_mode;
- rc = posix_acl_equiv_mode(acl, &mode);
- if (rc < 0)
- return rc;
+ not_equiv = posix_acl_equiv_mode(acl, &mode);
+ if (not_equiv < 0)
+ return not_equiv;
if (inode->i_mode != mode) {