From: Amerigo Wang Date: Thu, 3 Dec 2009 08:48:28 +0000 (-0500) Subject: selinux: remove a useless return X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=08e3daff217059c84c360cc71212686e0a7995af;p=openwrt%2Fstaging%2Fblogic.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 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; }