diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2020-11-04 21:50:55 +0300 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-11-30 22:46:41 +0300 |
commit | 94e254af1f873b4b551db4c4549294f2c4d385ef (patch) | |
tree | dfd484f57d9642aa5ff8b86eef8f6cc09d56469e | |
parent | 81243e3fe37ed547fc4ed8aab1cec2865540bb18 (diff) | |
download | linux-94e254af1f873b4b551db4c4549294f2c4d385ef.tar.xz |
NFSD: Replace READ* macros in nfsd4_decode_destroy_session()
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 7b38ecd1541b..f578bdb9fb8d 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -1678,11 +1678,7 @@ static __be32 nfsd4_decode_destroy_session(struct nfsd4_compoundargs *argp, struct nfsd4_destroy_session *destroy_session) { - DECODE_HEAD; - READ_BUF(NFS4_MAX_SESSIONID_LEN); - COPYMEM(destroy_session->sessionid.data, NFS4_MAX_SESSIONID_LEN); - - DECODE_TAIL; + return nfsd4_decode_sessionid4(argp, &destroy_session->sessionid); } static __be32 |