Skip to content

Commit

Permalink
CRED: fix sparse warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hannes Eder authored and James Morris committed Nov 25, 2008
1 parent 9789cfe commit 200036c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions security/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 200036c

Please sign in to comment.