From: Jeff Layton Date: Fri, 30 May 2014 13:09:29 +0000 (-0400) Subject: nfsd: remove unneeded zeroing of fields in nfsd4_proc_compound X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7025005d5e7715efa24c115c45f4a6b4f1a545de;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git nfsd: remove unneeded zeroing of fields in nfsd4_proc_compound 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 Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index 8fc901acf1d3..f053c5a9ebf1 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -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); /*