Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp317499pxk; Wed, 9 Sep 2020 06:17:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJ/lt4Ivtb8V5Z2Eniftgsqu7Dygt2z5hzzpt1FydLXv/xD4XrfKaOHaxqR8UcgCQ/WkUf X-Received: by 2002:a17:906:660f:: with SMTP id b15mr3762999ejp.333.1599657453818; Wed, 09 Sep 2020 06:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599657453; cv=none; d=google.com; s=arc-20160816; b=tfn2/oIvy9XmeT4K4h96P199mBac0AuDyVgDUpJlyB0PeuveJ0fqqF5TZcPHccLbge Ol1OX6nYQU0nqFdnvpqMPI+t8p+NaO+tixj47Zw7Q/j5WZzLntwZjhxSuVVfd3Q9ZqZi q17+exRpGD90ZwyUb5Tj+iK4aZZMfF2+V1iBrUn2SaWDid9XevUTsP5koyOD0Hd1wHUR g2GVHYCGiZx3zxPq/qUPz8vmELSdIzpb9KgaqLMNKXLXt7jcq5zC1lpCjvzsWGolVFIw XpcW9n/WA2hBlkNUXlrl4Fy5ehXdS/fZqZTqNk2QUzEnV/orvTBLBbbZe/JiITpmZGdk WrCQ== 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=ZhUNUX0NLwryTu8/gt8krM7vgHpro2y4YEvasubcNjY=; b=V3LVLQayyEa+dxyG4rVrSl71W/IGJ+kDCGGCcRh92jByMU7UmOxonEbdyxusfIbj0L VF7dZFYtO5+Sb9cxqDohOWNrcyew8ejilD14skcdogzyleLiYrHQ/KWamhBABINupnKN UWQ9FbBNGWmDh6RBEkm/zyYxRKii2bt++FLZz3BepPQYo7a8+jSoggLb84ShP2CcklTe oqALW/OxB/xz8lZHSHC4x9qKV5NOtjKGMnbN0VHPGFC2n3tblqT9GfbAUPh2xL7VUgs3 Y7D/kpFZ3ZF2rYdNre9ObpkoAuvmQnW/4cICsYGHJJ+snbS75o8c84VynNv9qdvrBaHp oF6A== 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 j2si1329758edt.312.2020.09.09.06.17.09; Wed, 09 Sep 2020 06:17:33 -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 S1730085AbgIINKS (ORCPT + 99 others); Wed, 9 Sep 2020 09:10:18 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:11297 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730236AbgIINAk (ORCPT ); Wed, 9 Sep 2020 09:00:40 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 1FCB9E98FF29C9EE4723; Wed, 9 Sep 2020 21:00:38 +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:28 +0800 From: Zheng Bin To: , , , , , , CC: , Subject: [PATCH -next 8/8] drm/amd/amdgpu: fix comparison pointer to bool warning in sdma_v4_0.c Date: Wed, 9 Sep 2020 21:07:20 +0800 Message-ID: <20200909130720.105234-9-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/sdma_v4_0.c:1003:4-9: WARNING: Comparison to bool drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c:1083:5-11: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c index f975dc4b143a..e8e7d4228b92 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c @@ -1000,7 +1000,7 @@ static void sdma_v4_0_page_stop(struct amdgpu_device *adev) sdma[i] = &adev->sdma.instance[i].page; if ((adev->mman.buffer_funcs_ring == sdma[i]) && - (unset == false)) { + (!unset)) { amdgpu_ttm_set_buffer_funcs_status(adev, false); unset = true; } @@ -1080,7 +1080,7 @@ static void sdma_v4_0_enable(struct amdgpu_device *adev, bool enable) u32 f32_cntl; int i; - if (enable == false) { + if (!enable) { sdma_v4_0_gfx_stop(adev); sdma_v4_0_rlc_stop(adev); if (adev->sdma.has_page_queue) -- 2.26.0.106.g9fadedd