Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp313283pxk; Wed, 9 Sep 2020 06:11:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNs5JguVlzdKDP0FtzmMQCQ7jPXM+0vjmm0rWNTEFTIGsYiEZbv2kDF30Gfai7TdT/xZ4o X-Received: by 2002:aa7:d558:: with SMTP id u24mr4044955edr.336.1599657095026; Wed, 09 Sep 2020 06:11:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599657095; cv=none; d=google.com; s=arc-20160816; b=T7UjzEyja/0agWbt/8fNyvakQHyxu3OIltxGcECBxbTFfiwJk41Rc6WJbuaGZd+a/g KI8blTcPHSg/ri+IfQz5odCfQJ29TRF1HccoesNtMT+KLvjKwcsBkRLfNw5jsLB0nV9A d5hF5FVgDKK9pfQUyz+6jAIrpoJ6oSUf60+AE1mf0t7RvtGlJ4wrJx/RSXXbYd8fYuRV 0e5lhzyDVqJksF4z1aSRHUpG/Fh3z36coCQszYRMtl5W0cyGVu1C0yfSOwN7bFweJgBV ivLugTxdlJzJCEv/D6yeNDvqNwQe+VeVocWm55XfbO9ckFAI0oRENMXzcXaakWShMSHN N2FA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=tgGJHhSbkeS492BLD5cyl/9iWZpFPTJVr+nSDsH0n2A=; b=pNGatIXJCxjolUNZNIvqfXPABQ/8ne8xfGFcfqtR4FHeggelwOdtgFw8xtFuDcDBEi WaK2BAkKoXzkFztBkGJCSxQpAyvh/OkWp0Fg0QBT2ixUPuGPUs+9gYZccrafyGb/cQhW n3qM0mDyjvqi6oEICCHmzkf6FwWByWwckW8PeaXHdQX6b2vskNA3II1+jbFJZce+3uYH YQxnHVOEMEM1yJKdeAb+VH0EGyHTJE4l+P9m5rNVIpAySDnD30kn2JlKic+joqH5m2Md V7M4FFEX57snVe72eFsWlAxBnv1lE24h6vYvTIROQUISFpxxKMamYO6PTzDXBg59tTjN 0wNw== 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 l14si1433533eje.378.2020.09.09.06.11.10; Wed, 09 Sep 2020 06:11:35 -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 S1730168AbgIINKB (ORCPT + 99 others); Wed, 9 Sep 2020 09:10:01 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:57456 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730205AbgIINAj (ORCPT ); Wed, 9 Sep 2020 09:00:39 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 47A891E728AC6FC2521F; Wed, 9 Sep 2020 21:00:33 +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; Wed, 9 Sep 2020 21:00:25 +0800 From: Zheng Bin To: , , , , , , CC: , Subject: [PATCH -next 1/8] drm/amd/amdgpu: fix comparison pointer to bool warning in gfx_v9_0.c Date: Wed, 9 Sep 2020 21:07:13 +0800 Message-ID: <20200909130720.105234-2-zhengbin13@huawei.com> X-Mailer: git-send-email 2.26.0.106.g9fadedd In-Reply-To: <20200909130720.105234-1-zhengbin13@huawei.com> References: <20200909130720.105234-1-zhengbin13@huawei.com> 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: drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:2805:5-11: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index fed2690d1380..20d8a03ca866 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -2802,7 +2802,7 @@ static void pwr_10_0_gfxip_control_over_cgpg(struct amdgpu_device *adev, uint32_t default_data = 0; default_data = data = RREG32(SOC15_REG_OFFSET(PWR, 0, mmPWR_MISC_CNTL_STATUS)); - if (enable == true) { + if (enable) { /* enable GFXIP control over CGPG */ data |= PWR_MISC_CNTL_STATUS__PWR_GFX_RLC_CGPG_EN_MASK; if(default_data != data) -- 2.26.0.106.g9fadedd