diff options
author | Amerigo Wang <amwang@redhat.com> | 2009-12-03 09:48:28 +0100 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2009-12-08 04:58:11 +0100 |
commit | 08e3daff217059c84c360cc71212686e0a7995af (patch) | |
tree | ac2dd60ab2309a82b72e57f15fef72401f5102d1 /security/selinux | |
parent | TOMOYO: Add rest of file operation restrictions. (diff) | |
download | linux-08e3daff217059c84c360cc71212686e0a7995af.tar.xz linux-08e3daff217059c84c360cc71212686e0a7995af.zip |
selinux: remove a useless return
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>
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/ss/mls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/ss/mls.c b/security/selinux/ss/mls.c index 3f2b2706b5bb..e6654b543aed 100644 --- a/security/selinux/ss/mls.c +++ b/security/selinux/ss/mls.c @@ -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; } |