Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e6e74618 authored by Fabian Frederick's avatar Fabian Frederick Committed by Linus Torvalds
Browse files

ocfs2: remove unnecessary else in ocfs2_set_acl()



else is unnecessary after return.

Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Cc: Mark Fasheh <mfasheh@suse.com>
Cc: Joel Becker <jlbec@evilplan.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b934beaf
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -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: