nfsd: fix comparison to bool warning
authorZheng Bin <zhengbin13@huawei.com>
Fri, 11 Sep 2020 04:10:14 +0000 (12:10 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 25 Sep 2020 22:01:28 +0000 (18:01 -0400)
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>
fs/nfsd/nfs4proc.c

index eaf50ea..63e5a48 100644 (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;