From: Zheng Bin Date: Fri, 11 Sep 2020 04:10:14 +0000 (+0800) Subject: nfsd: fix comparison to bool warning X-Git-Tag: v5.10-rc1~61^2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=44b49aa65f8603ad274c448310b5ff95a78d394c;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: J. Bruce Fields --- diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index eaf50eafa9359..63e5a4844d8c2 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;