diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2022-09-12 23:23:07 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2022-09-26 20:02:47 +0200 |
commit | d4da5baa533215b14625458e645056baf646bb2e (patch) | |
tree | ab1aae44f6418f1701bd29858953acf1ee651625 /fs/nfsd/nfs3xdr.c | |
parent | NFSD: Use xdr_inline_decode() to decode NFSv3 symlinks (diff) | |
download | linux-d4da5baa533215b14625458e645056baf646bb2e.tar.xz linux-d4da5baa533215b14625458e645056baf646bb2e.zip |
NFSD: Clean up WRITE arg decoders
xdr_stream_subsegment() already returns a boolean value.
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'fs/nfsd/nfs3xdr.c')
-rw-r--r-- | fs/nfsd/nfs3xdr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/nfsd/nfs3xdr.c b/fs/nfsd/nfs3xdr.c index 71e32cf28885..3308dd671ef0 100644 --- a/fs/nfsd/nfs3xdr.c +++ b/fs/nfsd/nfs3xdr.c @@ -571,10 +571,8 @@ nfs3svc_decode_writeargs(struct svc_rqst *rqstp, struct xdr_stream *xdr) args->count = max_blocksize; args->len = max_blocksize; } - if (!xdr_stream_subsegment(xdr, &args->payload, args->count)) - return false; - return true; + return xdr_stream_subsegment(xdr, &args->payload, args->count); } bool |