lkml.org 
[lkml]   [2008]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 19/20] security: fix return of void-valued expressions
    Date
    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>
    ---
    security/security.c | 6 +++---
    1 files changed, 3 insertions(+), 3 deletions(-)

    diff --git a/security/security.c b/security/security.c
    index c4507ce..2c0a587 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)
    --
    1.5.5.1


    \
     
     \ /
      Last update: 2008-07-07 18:53    [W:7.681 / U:0.080 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site