Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp366527pxk; Wed, 9 Sep 2020 07:28:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziyycB2UpnpHzguBGsjtLCUhwxCNiJrxDapWefCabHUYY5Qg2Bc9liSaL0VwTE35W4czYK X-Received: by 2002:a05:6402:114d:: with SMTP id g13mr4230413edw.157.1599661714411; Wed, 09 Sep 2020 07:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599661714; cv=none; d=google.com; s=arc-20160816; b=BpzRuzwvUlu3CU+rHNXfBtNIF/MGoR+Mm9TMllrc8BaGOKEtcbMTCetUq25AVTjuwe XoHKL2ruJkbRx6yEnBwGDCnKDwfOOprcP/BQt+jtPKEXuKT7cKkQlhTPmWSQ028M7wOn qtve5Z2DoIspjq0vFAmpCbESRvZVtpdYloSD2RaqR+yuUspZf4LOBEE1/5EfmZbgC8cm apqxd2d+WioaHe21W6kgkj+HC0Xey2i+xAmgoZf0jWsZQNIbykQWG5adlELNxl1pwbtY 5yKRCBmyQO+JQqST4MW8/RxddvhXvkOeOl2JxQUk+0sD7IZTXwGXAoB4kEIKFUmNoDPZ SdCw== 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=6yyp4bRi7fwaB+TYAO60dF9KimNve3XKwq6CM4Fu3o4=; b=Wwa51m57U+Zy72SdnjX/rD24/2Q1lh3EbXtv70KCOjAplhPCErBxcrNW2spl1KhZ2q o91ms2cco6Q/Ng9OeIaotuoOe8YqWW3HcUr/eoSJzKPxDa7mrjoEtK6HyYvOEODY71GV QgsyWSPFaQY7oSv00exKM1eGBQ0RC4RvcNZN5F/SAgZgUqNMHkL3S7+Cb1a0cTHdK9xq rshUciHZD03N2ry9/2IpCCqRjBq6EKNlgoLIepYOpdUni2GUFKqmt9XHZoKx0NeSKM6a eUbkK1zITARvG/iyYFVSwVMZrvOw5paFAWx3gT5WVaYwMovnjZ0n6Kg9pMdpdVsh22DW s5Wg== 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 v25si1495789eja.693.2020.09.09.07.28.11; Wed, 09 Sep 2020 07:28:34 -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 S1730346AbgIIOZq (ORCPT + 99 others); Wed, 9 Sep 2020 10:25:46 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:57484 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730211AbgIINAj (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 5C0E92D1F9E1726CC13C; 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:26 +0800 From: Zheng Bin To: , , , , , , CC: , Subject: [PATCH -next 2/8] drm/amd/amdgpu: fix comparison pointer to bool warning in gfx_v10_0.c Date: Wed, 9 Sep 2020 21:07:14 +0800 Message-ID: <20200909130720.105234-3-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_v10_0.c:3563:5-31: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 2db195ec8d0c..a78c0dbda968 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c @@ -3560,7 +3560,7 @@ static void gfx_v10_0_check_fw_write_wait(struct amdgpu_device *adev) break; } - if (adev->gfx.cp_fw_write_wait == false) + if (!adev->gfx.cp_fw_write_wait) DRM_WARN_ONCE("CP firmware version too old, please update!"); } -- 2.26.0.106.g9fadedd