ocfs2: remove unnecessary else in ocfs2_set_acl()

else is unnecessary after return.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Fabian Frederick 2015-02-10 14:08:43 -08:00 committed by Linus Torvalds
parent b934beaf4b
commit e6e746187d
1 changed files with 6 additions and 8 deletions

View File

@ -245,7 +245,7 @@ int ocfs2_set_acl(handle_t *handle,
ret = posix_acl_equiv_mode(acl, &mode);
if (ret < 0)
return ret;
else {
if (ret == 0)
acl = NULL;
@ -253,8 +253,6 @@ int ocfs2_set_acl(handle_t *handle,
handle, mode);
if (ret)
return ret;
}
}
break;
case ACL_TYPE_DEFAULT: