summaryrefslogtreecommitdiffstats
path: root/security/security.c
diff options
context:
space:
mode:
authorJames Morris2008-06-11 17:00:10 +0200
committerJames Morris2008-07-14 07:02:03 +0200
commit65fc7668006b537f7ae8451990c0ed9ec882544e (patch)
tree9f0f2b9c98aaa330534e225c5644e997cf01c1a9 /security/security.c
parentSELinux: use do_each_thread as a proper do/while block (diff)
downloadkernel-qcow2-linux-65fc7668006b537f7ae8451990c0ed9ec882544e.tar.gz
kernel-qcow2-linux-65fc7668006b537f7ae8451990c0ed9ec882544e.tar.xz
kernel-qcow2-linux-65fc7668006b537f7ae8451990c0ed9ec882544e.zip
security: fix return of void-valued expressions
Fix several warnings generated by sparse of the form "returning void-valued expression". Signed-off-by: James Morris <jmorris@namei.org> Acked-by: Casey Schaufler <casey@schaufler-ca.com> Acked-by: Serge Hallyn <serue@us.ibm.com>
Diffstat (limited to 'security/security.c')
-rw-r--r--security/security.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/security.c b/security/security.c
index c4507ce2a5a0..2c0a5876b939 100644
--- a/security/security.c
+++ b/security/security.c
@@ -895,7 +895,7 @@ EXPORT_SYMBOL(security_secctx_to_secid);
void security_release_secctx(char *secdata, u32 seclen)
{
- return security_ops->release_secctx(secdata, seclen);
+ security_ops->release_secctx(secdata, seclen);
}
EXPORT_SYMBOL(security_release_secctx);
@@ -1012,12 +1012,12 @@ int security_sk_alloc(struct sock *sk, int family, gfp_t priority)
void security_sk_free(struct sock *sk)
{
- return security_ops->sk_free_security(sk);
+ security_ops->sk_free_security(sk);
}
void security_sk_clone(const struct sock *sk, struct sock *newsk)
{
- return security_ops->sk_clone_security(sk, newsk);
+ security_ops->sk_clone_security(sk, newsk);
}
void security_sk_classify_flow(struct sock *sk, struct flowi *fl)