projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
937bf61
)
selinux: remove a useless return
author
Amerigo Wang
<amwang@redhat.com>
Thu, 3 Dec 2009 08:48:28 +0000
(
03:48
-0500)
committer
James Morris
<jmorris@namei.org>
Tue, 8 Dec 2009 03:58:11 +0000
(14:58 +1100)
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>
security/selinux/ss/mls.c
patch
|
blob
|
blame
|
history
diff --git
a/security/selinux/ss/mls.c
b/security/selinux/ss/mls.c
index 3f2b2706b5bbc9226b9e211c9fd46191c5856e23..e6654b543aed06f0da8a270aa325db0bc03499ff 100644
(file)
--- 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;
}