summaryrefslogtreecommitdiff
path: root/fs/nfsd/nfs4proc.c
diff options
context:
space:
mode:
authorZheng Bin <zhengbin13@huawei.com>2020-09-11 07:10:14 +0300
committerJ. Bruce Fields <bfields@redhat.com>2020-09-26 01:01:28 +0300
commit44b49aa65f8603ad274c448310b5ff95a78d394c (patch)
treeba56fc93aa3d7dfdd677ab493ee6d7efd98a0c0f /fs/nfsd/nfs4proc.c
parent5aff7d0820c472f52153ec5f9abf1df4dea28f3d (diff)
downloadlinux-44b49aa65f8603ad274c448310b5ff95a78d394c.tar.xz
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;