From: Amerigo Wang Date: Thu, 3 Dec 2009 08:48:28 +0000 (-0500) Subject: selinux: remove a useless return X-Git-Tag: v2.6.34-rc1~228^2^2~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=08e3daff217059c84c360cc71212686e0a7995af;p=thirdparty%2Fkernel%2Flinux.git selinux: remove a useless return The last return is unreachable, remove the 'return' in default, let it fall through. Signed-off-by: WANG Cong Acked-by: Eric Paris Signed-off-by: James Morris --- diff --git a/security/selinux/ss/mls.c b/security/selinux/ss/mls.c index 3f2b2706b5bbc..e6654b543aed0 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; }