Skip to content

Commit

Permalink
selinux: remove a useless return
Browse files Browse the repository at this point in the history
The last return is unreachable, remove the 'return'
in default, let it fall through.

Signed-off-by: WANG Cong <amwang@redhat.com>
Acked-by: Eric Paris <eparis@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
  • Loading branch information
Amerigo Wang authored and James Morris committed Dec 8, 2009
1 parent 937bf61 commit 08e3daf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions security/selinux/ss/mls.c
Original file line number Diff line number Diff line change
@@ -541,8 +541,8 @@ int mls_compute_sid(struct context *scontext,
case AVTAB_MEMBER:
/* Use the process effective MLS attributes. */
return mls_context_cpy_low(newcontext, scontext);
default:
return -EINVAL;

/* fall through */
}
return -EINVAL;
}

0 comments on commit 08e3daf

Please sign in to comment.