summaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4proc.c
diff options
context:
space:
mode:
authorZheng Bin <zhengbin13@huawei.com>2020-09-11 06:10:14 +0200
committerJ. Bruce Fields <bfields@redhat.com>2020-09-26 00:01:28 +0200
commit44b49aa65f8603ad274c448310b5ff95a78d394c (patch)
treeba56fc93aa3d7dfdd677ab493ee6d7efd98a0c0f /fs/nfsd/nfs4proc.c
parentNFSD: Correct type annotations in COPY XDR functions (diff)
downloadlinux-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.c2
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;