Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp363585pxk; Wed, 9 Sep 2020 07:24:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGD6q7m3C0FE3By2lCPsm27BUSkDB7bo0BWMpNAZTusjMXMOTAdUunC4r8v/t7N3OMuZZE X-Received: by 2002:a05:6402:1109:: with SMTP id u9mr4451229edv.74.1599661457080; Wed, 09 Sep 2020 07:24:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599661457; cv=none; d=google.com; s=arc-20160816; b=HtbLpdmAbN0OkJqEb3e9sXFLjKQjPQZuJGhiMHRiTl0lLuK5NOSKYdbo1qpIm3qgqE 7uqbmkosAz1fHKJ6D1n0aDAdlXl3aCzHOaDfZ1ET4oPpmhCj7mZkWtsSk804XHAIuZx/ rLM6MhTKoF8gUS225FIyscC16hKWqgrFpEkDBHsDZoQ89eDvMtPwcy94yqsVxrgZkVEw 6O8KRbrSqhl98cfhYm9wpWRFmOqwHcn0iWDhD5biNEvIQgGStE7bnEAkOLVvgnRmV0SP q1efBV/SZumB7dzw4O4RKij3peEFtEolKiy7ZZ6xDGGF3VE6siqDRi/19MtzZKDp9LJJ JLfg== 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=FP+zo5WvBriFYxW82Xd5q6brA+AxK+BkMiLm8A3FMgo=; b=WyAqeJAAIbAJ/IzCfdY8nVbfQWE1UzPtfXc9HoPJzzseAdtdkQTpeKVSuCmcK7UFNw GxJ+7gRp3mFedpBao9rxgXumOb8F8Hzv+57dy2NdIAgnZk6Ko7ETNz6A7y25iIN8cHeV Y7tyVqyZpaIb/URU9EDvLtHU7Laed5DbXlnfN9nwvQlRhorT7YXXiKL7qoZ2BewmVjcB t2gFG5kO0T286t3Xpl7JfnOtT48SRlKjXgPIwgdSVism7NJdIsGoTLxXwJNd7NZfTw9e Hlba7MMvcDarIXOkXbyPSSmUMM1uDVuDTqy28VpaXrjm7GQPtMflHFULeXujkPBX1dD1 SwOA== 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.23.52; Wed, 09 Sep 2020 07:24:17 -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 S1730285AbgIIOVv (ORCPT + 99 others); Wed, 9 Sep 2020 10:21:51 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:57336 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730187AbgIINAj (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 4D1EEFE2135306C9AB1B; 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:27 +0800 From: Zheng Bin To: , , , , , , CC: , Subject: [PATCH -next 5/8] drm/amd/amdgpu: fix comparison pointer to bool warning in si.c Date: Wed, 9 Sep 2020 21:07:17 +0800 Message-ID: <20200909130720.105234-6-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/si.c:1342:5-10: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/si.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si.c b/drivers/gpu/drm/amd/amdgpu/si.c index 455d5e366c69..e5e336fd9e94 100644 --- a/drivers/gpu/drm/amd/amdgpu/si.c +++ b/drivers/gpu/drm/amd/amdgpu/si.c @@ -1339,7 +1339,7 @@ static void si_vga_set_state(struct amdgpu_device *adev, bool state) uint32_t temp; temp = RREG32(CONFIG_CNTL); - if (state == false) { + if (!state) { temp &= ~(1<<0); temp |= (1<<1); } else { -- 2.26.0.106.g9fadedd