summaryrefslogtreecommitdiffstats
path: root/security
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
parent937bf6133b21b16965f75223085f4314ae32b8eb (diff)
downloadop-kernel-dev-08e3daff217059c84c360cc71212686e0a7995af.zip
op-kernel-dev-08e3daff217059c84c360cc71212686e0a7995af.tar.gz
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')
-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 3f2b270..e6654b5 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;
}
OpenPOWER on IntegriCloud