diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-10-17 03:41:17 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2011-10-17 08:35:09 -0400 |
commit | 01cd4afadbf376de07d364a632cc82a0fc5e8655 (patch) | |
tree | c0069f6d750ea4fc87fff12e2e5fff28eb9be8ce /fs/nfsd/nfs4xdr.c | |
parent | 5703728ac1194baee554163180415baf4ccd9996 (diff) |
nfsd4: typo logical vs bitwise negate
This should be a bitwise negate here. It silences a Sparse warning:
fs/nfsd/nfs4xdr.c:693:16: warning: dubious: x & !y
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 2cab33cc3238..645a0a9d8073 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c | |||
@@ -690,7 +690,7 @@ static __be32 nfsd4_decode_share_deny(struct nfsd4_compoundargs *argp, u32 *x) | |||
690 | READ_BUF(4); | 690 | READ_BUF(4); |
691 | READ32(*x); | 691 | READ32(*x); |
692 | /* Note: unlinke access bits, deny bits may be zero. */ | 692 | /* Note: unlinke access bits, deny bits may be zero. */ |
693 | if (*x & !NFS4_SHARE_DENY_BOTH) | 693 | if (*x & ~NFS4_SHARE_DENY_BOTH) |
694 | return nfserr_bad_xdr; | 694 | return nfserr_bad_xdr; |
695 | return nfs_ok; | 695 | return nfs_ok; |
696 | xdr_error: | 696 | xdr_error: |