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>
This commit is contained in:
Zheng Bin 2020-09-11 12:10:14 +08:00 committed by J. Bruce Fields
parent 5aff7d0820
commit 44b49aa65f

View file

@ -3231,7 +3231,7 @@ bool nfsd4_spo_must_allow(struct svc_rqst *rqstp)
if (!cstate->minorversion) if (!cstate->minorversion)
return false; return false;
if (cstate->spo_must_allowed == true) if (cstate->spo_must_allowed)
return true; return true;
opiter = resp->opcnt; opiter = resp->opcnt;