NFSD: Replace READ* macros in nfsd4_decode_share_deny()
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
9aa62f5199
commit
b07bebd9eb
|
@ -1063,16 +1063,13 @@ static __be32 nfsd4_decode_share_access(struct nfsd4_compoundargs *argp, u32 *sh
|
||||||
|
|
||||||
static __be32 nfsd4_decode_share_deny(struct nfsd4_compoundargs *argp, u32 *x)
|
static __be32 nfsd4_decode_share_deny(struct nfsd4_compoundargs *argp, u32 *x)
|
||||||
{
|
{
|
||||||
__be32 *p;
|
if (xdr_stream_decode_u32(argp->xdr, x) < 0)
|
||||||
|
return nfserr_bad_xdr;
|
||||||
READ_BUF(4);
|
/* Note: unlike access bits, deny bits may be zero. */
|
||||||
*x = be32_to_cpup(p++);
|
|
||||||
/* Note: unlinke access bits, deny bits may be zero. */
|
|
||||||
if (*x & ~NFS4_SHARE_DENY_BOTH)
|
if (*x & ~NFS4_SHARE_DENY_BOTH)
|
||||||
return nfserr_bad_xdr;
|
return nfserr_bad_xdr;
|
||||||
|
|
||||||
return nfs_ok;
|
return nfs_ok;
|
||||||
xdr_error:
|
|
||||||
return nfserr_bad_xdr;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static __be32
|
static __be32
|
||||||
|
|
Loading…
Reference in New Issue