提交 e6e74618 编写于 作者: F Fabian Frederick 提交者: Linus Torvalds

ocfs2: remove unnecessary else in ocfs2_set_acl()

else is unnecessary after return.
Signed-off-by: NFabian Frederick <fabf@skynet.be>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 b934beaf
...@@ -245,16 +245,14 @@ int ocfs2_set_acl(handle_t *handle, ...@@ -245,16 +245,14 @@ int ocfs2_set_acl(handle_t *handle,
ret = posix_acl_equiv_mode(acl, &mode); ret = posix_acl_equiv_mode(acl, &mode);
if (ret < 0) if (ret < 0)
return ret; return ret;
else {
if (ret == 0)
acl = NULL;
ret = ocfs2_acl_set_mode(inode, di_bh, if (ret == 0)
handle, mode); acl = NULL;
if (ret)
return ret;
} ret = ocfs2_acl_set_mode(inode, di_bh,
handle, mode);
if (ret)
return ret;
} }
break; break;
case ACL_TYPE_DEFAULT: case ACL_TYPE_DEFAULT:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册