Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1582181pxk; Thu, 10 Sep 2020 21:04:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLMA9pc8hRrKzwQTljZ8RRVNEKvpUDQhgtRnYlKztbau53HEDtTF3GPRygurdOjeKN066m X-Received: by 2002:a17:906:f157:: with SMTP id gw23mr177222ejb.325.1599797078662; Thu, 10 Sep 2020 21:04:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599797078; cv=none; d=google.com; s=arc-20160816; b=C0HfNxEmdkkBPVFLM3ZkdZWRvtrs6cGQpwSJeu60nl768q5KIJj98yam0kKHNR+pVz Y7nhS74xcQpnkWwK97Zwl6UUnploPLbcRWl2EQ4AeoJNiePbmxylU35y/1SNBSATfZLa dWn0u4oZUAnX5k5sXYJIZZ0KCXYkKvC/epdZj96yduSyFwPJeQYAe32aGYL83DrhzYoW b2ZXxgqorQiBX7hXizwqRm3RKVdWsrQb45g4OwEuYHnXnTVggw+dYUfT7rKiHW69n2Cn JU5rrJTf7ipxLr8z1S03gzhreK2aEBjMsElBZ/aL5Jni9T1+FkppbS+Orczan3L1eiLu oshA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=/N+DjHsCLwSDHFJWPGaH9wR5NSBfGRe1T+Swe/T+fDw=; b=MJ0XUMXCzlTM1/URiGBsky/Sj+D4H4BlAthKIXpkDHTTnbOzZLkOmshI40FUbfzjd7 02OBnog4rBxIytzhmMlXlDQWRU4JbbyqvEle2Rtd/rnWjmZHDCP1y2/cUAxQaT5BnNwH f64+UF2v3YxohBxHQ0rWQepEdW3pmFYVNkYt4ZM0BSukDQFG0OwRZrbJba5HL8JLrrX1 575RcbmJtZkzjFRG6l4uLzaldLNBQLjx4W/+pfxPeYQXQnCLx2+RWWIfXBfPWQQUbx2/ DRENzO3sc5GHdWcnH3W9G/4eO8MZIGbAzxFyUv6tGiiQJE05IdgWCx1kg0S74cuKzGNo JNsg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rh24si496532ejb.283.2020.09.10.21.04.15; Thu, 10 Sep 2020 21:04:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725616AbgIKEDg (ORCPT + 99 others); Fri, 11 Sep 2020 00:03:36 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:11812 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725306AbgIKEDb (ORCPT ); Fri, 11 Sep 2020 00:03:31 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id D20A43D6DBB88964D9F0; Fri, 11 Sep 2020 12:03:29 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Fri, 11 Sep 2020 12:03:19 +0800 From: Zheng Bin To: , , , CC: , Subject: [PATCH -next] nfsd: fix comparison to bool warning Date: Fri, 11 Sep 2020 12:10:14 +0800 Message-ID: <20200911041014.120723-1-zhengbin13@huawei.com> X-Mailer: git-send-email 2.26.0.106.g9fadedd MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes coccicheck warning: fs/nfsd/nfs4proc.c:3234:5-29: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- fs/nfsd/nfs4proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index eaf50eafa935..63e5a4844d8c 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; -- 2.26.0.106.g9fadedd