nfsd: Remove unneeded values in nfsd4_open()
authorKinglong Mee <kinglongmee@gmail.com>
Mon, 13 Jul 2015 09:32:05 +0000 (17:32 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 10 Aug 2015 20:05:49 +0000 (16:05 -0400)
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c

index d112c8a322d9f0f86c50f9881185abd6f8c5300a..e779d7db24b0f984c063e8883ce26880da0c6354 100644 (file)
@@ -362,7 +362,6 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
 {
        __be32 status;
        struct svc_fh *resfh = NULL;
-       struct nfsd4_compoundres *resp;
        struct net *net = SVC_NET(rqstp);
        struct nfsd_net *nn = net_generic(net, nfsd_net_id);
 
@@ -389,8 +388,7 @@ nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
                copy_clientid(&open->op_clientid, cstate->session);
 
        /* check seqid for replay. set nfs4_owner */
-       resp = rqstp->rq_resp;
-       status = nfsd4_process_open1(&resp->cstate, open, nn);
+       status = nfsd4_process_open1(cstate, open, nn);
        if (status == nfserr_replay_me) {
                struct nfs4_replay *rp = &open->op_openowner->oo_owner.so_replay;
                fh_put(&cstate->current_fh);