Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

-3
-3
fs/nfsd/nfs4state.c
··· 3954 3954 return status; 3955 3955 3956 3956 out_expired_error: 3957 - old = NULL; 3958 3957 /* 3959 3958 * Revert the slot seq_nr change so the server will process 3960 3959 * the client's resend instead of returning a cached response. ··· 3968 3969 out_free_conn: 3969 3970 spin_unlock(&nn->client_lock); 3970 3971 free_conn(conn); 3971 - if (old) 3972 - expire_client(old); 3973 3972 out_free_session: 3974 3973 __free_session(new); 3975 3974 out_release_drc_mem: