Skip to content

Commit

Permalink
security: fix return of void-valued expressions
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
James Morris committed Jul 14, 2008
1 parent 2baf06d commit 65fc766
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 @@ -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);

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 65fc766

Please sign in to comment.