summaryrefslogtreecommitdiff
path: root/fs/nfsd
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2024-10-17 11:03:51 -0400
committerChuck Lever <chuck.lever@oracle.com>2024-11-18 20:23:01 -0500
commitd08bf5ea649c045175c191609ccd52644b85985f (patch)
tree44ca89815110969b3c938716633e4a553fd640a7 /fs/nfsd
parent4cc9b9f2bf4dfe13fe573da978e626e2248df388 (diff)
downloadlwn-d08bf5ea649c045175c191609ccd52644b85985f.tar.gz
lwn-d08bf5ea649c045175c191609ccd52644b85985f.zip
NFSD: Remove dead code in nfsd4_create_session()
Clean up. AFAICT, there is no way to reach the out_free_conn label with @old set to a non-NULL value, so the expire_client(old) call is never reached and can be removed. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index 2efceeea0fe3..133117b6c7cc 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -3954,7 +3954,6 @@ nfsd4_create_session(struct svc_rqst *rqstp,
return status;
out_expired_error:
- old = NULL;
/*
* Revert the slot seq_nr change so the server will process
* the client's resend instead of returning a cached response.
@@ -3969,8 +3968,6 @@ out_cache_error:
out_free_conn:
spin_unlock(&nn->client_lock);
free_conn(conn);
- if (old)
- expire_client(old);
out_free_session:
__free_session(new);
out_release_drc_mem: