]> git.karo-electronics.de Git - linux-beck.git/commitdiff
nfsd: remove unneeded zeroing of fields in nfsd4_proc_compound
authorJeff Layton <jlayton@primarydata.com>
Fri, 30 May 2014 13:09:29 +0000 (09:09 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 4 Jun 2014 19:42:03 +0000 (15:42 -0400)
The memset of resp in svc_process_common should ensure that these are
already zeroed by the time they get here.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4proc.c

index 8fc901acf1d3a8075dbc2b1aa0c5b4f1abc2fc2a..f053c5a9ebf162c4c35313fb257a8a20201e7a54 100644 (file)
@@ -1290,11 +1290,8 @@ nfsd4_proc_compound(struct svc_rqst *rqstp,
        xdr_reserve_space(&resp->xdr, 8 + args->taglen);
        resp->taglen = args->taglen;
        resp->tag = args->tag;
-       resp->opcnt = 0;
        resp->rqstp = rqstp;
        cstate->minorversion = args->minorversion;
-       cstate->replay_owner = NULL;
-       cstate->session = NULL;
        fh_init(current_fh, NFS4_FHSIZE);
        fh_init(save_fh, NFS4_FHSIZE);
        /*