From: Benny Halevy Date: Mon, 3 May 2010 16:31:33 +0000 (+0300) Subject: nfsd4: use local variable in nfs4svc_encode_compoundres X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=dbd65a7e44fff4741a0b2c84bd6bace85d22c242;p=openwrt%2Fstaging%2Fblogic.git nfsd4: use local variable in nfs4svc_encode_compoundres 'cs' is already computed, re-use it. Signed-off-by: Benny Halevy Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 05bc5bd63c95..b27bcf33107c 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -3310,9 +3310,9 @@ nfs4svc_encode_compoundres(struct svc_rqst *rqstp, __be32 *p, struct nfsd4_compo if (cs->status != nfserr_replay_cache) { nfsd4_store_cache_entry(resp); dprintk("%s: SET SLOT STATE TO AVAILABLE\n", __func__); - resp->cstate.slot->sl_inuse = false; + cs->slot->sl_inuse = false; } - nfsd4_put_session(resp->cstate.session); + nfsd4_put_session(cs->session); } return 1; }