NFSD: Replace READ* macros in nfsd4_decode_setclientid_confirm()
[ Upstream commit d1ca55149d67e5896f89a30053f5d83c002ac10e ] Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
34132fb635
commit
b2b8186a6c
1 changed files with 5 additions and 6 deletions
|
@ -1355,16 +1355,15 @@ nfsd4_decode_setclientid(struct nfsd4_compoundargs *argp, struct nfsd4_setclient
|
|||
static __be32
|
||||
nfsd4_decode_setclientid_confirm(struct nfsd4_compoundargs *argp, struct nfsd4_setclientid_confirm *scd_c)
|
||||
{
|
||||
DECODE_HEAD;
|
||||
__be32 status;
|
||||
|
||||
if (argp->minorversion >= 1)
|
||||
return nfserr_notsupp;
|
||||
|
||||
READ_BUF(8 + NFS4_VERIFIER_SIZE);
|
||||
COPYMEM(&scd_c->sc_clientid, 8);
|
||||
COPYMEM(&scd_c->sc_confirm, NFS4_VERIFIER_SIZE);
|
||||
|
||||
DECODE_TAIL;
|
||||
status = nfsd4_decode_clientid4(argp, &scd_c->sc_clientid);
|
||||
if (status)
|
||||
return status;
|
||||
return nfsd4_decode_verifier4(argp, &scd_c->sc_confirm);
|
||||
}
|
||||
|
||||
/* Also used for NVERIFY */
|
||||
|
|
Loading…
Reference in a new issue