aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/ss/mls.c
diff options
context:
space:
mode:
authorAmerigo Wang <amwang@redhat.com>2009-12-03 03:48:28 -0500
committerJames Morris <jmorris@namei.org>2009-12-08 14:58:11 +1100
commit08e3daff217059c84c360cc71212686e0a7995af (patch)
treeac2dd60ab2309a82b72e57f15fef72401f5102d1 /security/selinux/ss/mls.c
parentTOMOYO: Add rest of file operation restrictions. (diff)
downloadlinux-dev-08e3daff217059c84c360cc71212686e0a7995af.tar.xz
linux-dev-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/ss/mls.c')
-rw-r--r--security/selinux/ss/mls.c4
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;
}