diff options
author | Zheng Bin <zhengbin13@huawei.com> | 2020-09-11 12:10:14 +0800 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2020-09-25 18:01:28 -0400 |
commit | 44b49aa65f8603ad274c448310b5ff95a78d394c (patch) | |
tree | ba56fc93aa3d7dfdd677ab493ee6d7efd98a0c0f /fs/nfsd | |
parent | 5aff7d0820c472f52153ec5f9abf1df4dea28f3d (diff) |
nfsd: fix comparison to bool warning
Fixes coccicheck warning:
fs/nfsd/nfs4proc.c:3234:5-29: WARNING: Comparison to bool
Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index eaf50eafa935..63e5a4844d8c 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c @@ -3231,7 +3231,7 @@ bool nfsd4_spo_must_allow(struct svc_rqst *rqstp) if (!cstate->minorversion) return false; - if (cstate->spo_must_allowed == true) + if (cstate->spo_must_allowed) return true; opiter = resp->opcnt; |