public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch] selinux: remove a useless return
@ 2009-12-03  8:48 Amerigo Wang
  2009-12-03 14:23 ` Eric Paris
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Amerigo Wang @ 2009-12-03  8:48 UTC (permalink / raw)
  To: linux-kernel
  Cc: Eric Paris, linux-security-module, akpm, Amerigo Wang,
	James Morris

The last return is unreachable, remove the 'return'
in default, let it fall through.

Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: James Morris <jmorris@namei.org>
Cc: Eric Paris <eparis@parisplace.org>

---

diff --git a/security/selinux/ss/mls.c b/security/selinux/ss/mls.c
index b5407f1..718823d 100644
--- a/security/selinux/ss/mls.c
+++ b/security/selinux/ss/mls.c
@@ -542,7 +542,7 @@ int mls_compute_sid(struct context *scontext,
 		/* Use the process effective MLS attributes. */
 		return mls_context_cpy_low(newcontext, scontext);
 	default:
-		return -EINVAL;
+		/* Fallthrough */
 	}
 	return -EINVAL;
 }

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-12-08  9:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-03  8:48 [Patch] selinux: remove a useless return Amerigo Wang
2009-12-03 14:23 ` Eric Paris
2009-12-07 13:32 ` Dan Carpenter
2009-12-08  9:54   ` Cong Wang
2009-12-07 22:26 ` James Morris
2009-12-08  9:55   ` Cong Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox