public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] CRED: fix sparse warnings
@ 2008-11-24 21:14 Hannes Eder
  2008-11-24 23:21 ` David Howells
  2008-11-25  1:08 ` James Morris
  0 siblings, 2 replies; 6+ messages in thread
From: Hannes Eder @ 2008-11-24 21:14 UTC (permalink / raw)
  To: David Howells, James Morris, linux-kernel, kernel-janitors

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>
---
 security/security.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/security/security.c b/security/security.c
index 038ef04..f0d96a6 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)
-- 
1.5.6.3

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

end of thread, other threads:[~2008-11-25  6:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-24 21:14 [PATCH] CRED: fix sparse warnings Hannes Eder
2008-11-24 23:21 ` David Howells
2008-11-25  0:46   ` Hannes Eder
2008-11-25  0:56     ` Harvey Harrison
2008-11-25  6:39       ` Julia Lawall
2008-11-25  1:08 ` James Morris

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