1
0
Fork 0

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>
zero-sugar-mainline-defconfig
Zheng Bin 2020-09-11 12:10:14 +08:00 committed by J. Bruce Fields
parent 5aff7d0820
commit 44b49aa65f
1 changed files with 1 additions and 1 deletions

View File

@ -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;