NFSD: Replace READ* macros in nfsd4_decode_renew()

[ Upstream commit d12f90458dc8c11734ba44ec88f109bf8de86ff0 ]

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Chuck Lever 2020-11-04 15:08:50 -05:00 committed by Ksawlii
parent b240d33402
commit 4e3cc691f3

View file

@ -1272,15 +1272,7 @@ nfsd4_decode_rename(struct nfsd4_compoundargs *argp, struct nfsd4_rename *rename
static __be32 static __be32
nfsd4_decode_renew(struct nfsd4_compoundargs *argp, clientid_t *clientid) nfsd4_decode_renew(struct nfsd4_compoundargs *argp, clientid_t *clientid)
{ {
DECODE_HEAD; return nfsd4_decode_clientid4(argp, clientid);
if (argp->minorversion >= 1)
return nfserr_notsupp;
READ_BUF(sizeof(clientid_t));
COPYMEM(clientid, sizeof(clientid_t));
DECODE_TAIL;
} }
static __be32 static __be32