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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;