aboutsummaryrefslogtreecommitdiff
path: root/security/selinux
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
parent937bf6133b21b16965f75223085f4314ae32b8eb (diff)
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/ss/mls.c b/security/selinux/ss/mls.c
index 3f2b2706b5b..e6654b543ae 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;
}