Commit 44b49aa6 authored by Zheng Bin's avatar Zheng Bin Committed by J. Bruce Fields

nfsd: fix comparison to bool warning

Fixes coccicheck warning:

fs/nfsd/nfs4proc.c:3234:5-29: WARNING: Comparison to bool
Signed-off-by: default avatarZheng Bin <zhengbin13@huawei.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 5aff7d08
...@@ -3231,7 +3231,7 @@ bool nfsd4_spo_must_allow(struct svc_rqst *rqstp) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment