Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp362217pxk; Wed, 9 Sep 2020 07:22:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwx8by6ipGUcvkiqADu9rCMENiQEN9hXOSdh3XAvIRCI9L4ZxPaBzxEzaHcAqwHmNQVTDys X-Received: by 2002:a17:906:46d5:: with SMTP id k21mr3760553ejs.247.1599661341536; Wed, 09 Sep 2020 07:22:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599661341; cv=none; d=google.com; s=arc-20160816; b=oV8MplQJ+U63dzqrXfSA75nxLWWX2RYybw5PI9jJZTGnusMxS/bufKUyGyki2Ak6PZ 7utD97nXtYHh9xibZ+kLBs8EhFUIe7XRubZUE0x6BvMlUmtolkQum2exn5dnkNbDbOQz GJ9rFp6aSt87ki8/EovyUCjluFP7vZhFUOrjPYBjQyRztUFdiYAiHE0WuJ0ZfBMkdwdK dB1ST3zCihL2wN7tFE4luJ67Gl932AaiD2lwxnesjxp4cfL6Mg5EqaeTcfQSx3pchGgT xeibcBn6dFbp3rmz06tU6Jg+Cp3XkOUb6smj+tVZFFDEQQP1kUL2JKn40tNwQK+CfDPq DRDw== 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=y5DM+lviDmEbEc+ltvYDxOCuqunRw84VEyYQObAass4=; b=OZcBNTuLqSEgGXPmX+BHPVNiCZGwRodjg+3VWYsPQMd8PttMjesxTW2n903r4dN15p 2LW3YCEZgSFHPczn1kEhJnie14jVvxaPJ5ZIeqrC3YY+UgRsHQKyqdshtujJyabuBIsE OZAVAOEQ1kFENCjAU6XDx8vN3y7Ayy2sOqCpj2RMk+WWcJ6tbiSlJNDb4AMQmiJopSZQ Cw1aF6/lKcdjLYfIQplAPClONcdO6Ai7lpUms7JRyRrTtCOyVFscTZomg0YkbKnkbGLm mUNUUbFHYG5MpceL3CMbfUHKISr3e5cX4qHD6cChPuIPSyrXF6YhX8+OEecFQbfqWjNK T/SQ== 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 k20si1376443eje.105.2020.09.09.07.21.58; Wed, 09 Sep 2020 07:22:21 -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 S1730200AbgIIOUl (ORCPT + 99 others); Wed, 9 Sep 2020 10:20:41 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:11298 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729521AbgIINAk (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 24E8A3E76549727629C5; 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:27 +0800 From: Zheng Bin To: , , , , , , CC: , Subject: [PATCH -next 7/8] drm/amd/amdgpu: fix comparison pointer to bool warning in amdgpu_atpx_handler.c Date: Wed, 9 Sep 2020 21:07:19 +0800 Message-ID: <20200909130720.105234-8-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/amdgpu_atpx_handler.c:619:15-49: WARNING: Comparison to bool drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c:629:15-49: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c index 3e35a8f2c5e5..7abe9500c0c6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c @@ -616,7 +616,7 @@ static bool amdgpu_atpx_detect(void) while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_VGA << 8, pdev)) != NULL) { vga_count++; - has_atpx |= (amdgpu_atpx_pci_probe_handle(pdev) == true); + has_atpx |= amdgpu_atpx_pci_probe_handle(pdev); parent_pdev = pci_upstream_bridge(pdev); d3_supported |= parent_pdev && parent_pdev->bridge_d3; @@ -626,7 +626,7 @@ static bool amdgpu_atpx_detect(void) while ((pdev = pci_get_class(PCI_CLASS_DISPLAY_OTHER << 8, pdev)) != NULL) { vga_count++; - has_atpx |= (amdgpu_atpx_pci_probe_handle(pdev) == true); + has_atpx |= amdgpu_atpx_pci_probe_handle(pdev); parent_pdev = pci_upstream_bridge(pdev); d3_supported |= parent_pdev && parent_pdev->bridge_d3; -- 2.26.0.106.g9fadedd