mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
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 <[email protected]> Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
1 parent
7451c4f0ee
commit
a5f9145bc9
1 file changed
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user