diff options
author | Zheng Bin <zhengbin13@huawei.com> | 2020-09-11 06:10:14 +0200 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2020-09-26 00:01:28 +0200 |
commit | 44b49aa65f8603ad274c448310b5ff95a78d394c (patch) | |
tree | ba56fc93aa3d7dfdd677ab493ee6d7efd98a0c0f /fs/nfsd/nfs4proc.c | |
parent | NFSD: Correct type annotations in COPY XDR functions (diff) | |
download | linux-44b49aa65f8603ad274c448310b5ff95a78d394c.tar.xz linux-44b49aa65f8603ad274c448310b5ff95a78d394c.zip |
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/nfs4proc.c')
-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; |