summaryrefslogtreecommitdiff
path: root/security/security.c
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2008-11-25 00:14:43 +0300
committerJames Morris <jmorris@namei.org>2008-11-25 04:03:17 +0300
commit200036ca9b3f0b2250912142552ce56682190f95 (patch)
tree2588521766ea0d6ec0a79c18bceee1d81e30dab1 /security/security.c
parent9789cfe22e5d7bc10cad841a4ea96ecedb34b267 (diff)
downloadlinux-200036ca9b3f0b2250912142552ce56682190f95.tar.xz
CRED: fix sparse warnings
Impact: fix sparse warnings Fix the following sparse warnings: security/security.c:228:2: warning: returning void-valued expression security/security.c:233:2: warning: returning void-valued expression security/security.c:616:2: warning: returning void-valued expression Signed-off-by: Hannes Eder <hannes@hanneseder.net> Signed-off-by: James Morris <jmorris@namei.org>
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 038ef04b2c7f..f0d96a6cc4e9 100644
--- a/security/security.c
+++ b/security/security.c
@@ -225,12 +225,12 @@ int security_bprm_check(struct linux_binprm *bprm)
void security_bprm_committing_creds(struct linux_binprm *bprm)
{
- return security_ops->bprm_committing_creds(bprm);
+ security_ops->bprm_committing_creds(bprm);
}
void security_bprm_committed_creds(struct linux_binprm *bprm)
{
- return security_ops->bprm_committed_creds(bprm);
+ security_ops->bprm_committed_creds(bprm);
}
int security_bprm_secureexec(struct linux_binprm *bprm)
@@ -613,7 +613,7 @@ int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp)
void security_commit_creds(struct cred *new, const struct cred *old)
{
- return security_ops->cred_commit(new, old);
+ security_ops->cred_commit(new, old);
}
int security_kernel_act_as(struct cred *new, u32 secid)