diff options
author | Eric Sesterhenn <snakebyte@gmx.de> | 2006-04-19 13:06:49 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2006-04-19 13:06:49 -0400 |
commit | a5f9145bc9c340bda743ad51e09bdea60fa3ddfa (patch) | |
tree | 615c72a264de7a25ac51ce0cbd4d7b4c24c9a90b | |
parent | 7451c4f0ee53e36fd74168af8df75b28fd04a2aa (diff) | |
download | blackbird-op-linux-a5f9145bc9c340bda743ad51e09bdea60fa3ddfa.tar.gz blackbird-op-linux-a5f9145bc9c340bda743ad51e09bdea60fa3ddfa.zip |
SUNRPC: Dead code in net/sunrpc/auth_gss/auth_gss.c
Hi,
the coverity checker spotted that cred is always NULL
when we jump to out_err ( there is just one case, when
we fail to allocate the memory for cred )
This is Coverity ID #79
Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
-rw-r--r-- | net/sunrpc/auth_gss/auth_gss.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sunrpc/auth_gss/auth_gss.c b/net/sunrpc/auth_gss/auth_gss.c index 900ef31f5a0e..519ebc17c028 100644 --- a/net/sunrpc/auth_gss/auth_gss.c +++ b/net/sunrpc/auth_gss/auth_gss.c @@ -794,7 +794,6 @@ gss_create_cred(struct rpc_auth *auth, struct auth_cred *acred, int flags) out_err: dprintk("RPC: gss_create_cred failed with error %d\n", err); - if (cred) gss_destroy_cred(&cred->gc_base); return ERR_PTR(err); } |