Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp368913pxk; Wed, 9 Sep 2020 07:32:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7KjbSlNtBKwfA0nQTcf7NsrYzt5kezM8EjTiwtRusLpBk242urjwVP9KBdtXsesHedhs3 X-Received: by 2002:a17:906:af53:: with SMTP id ly19mr3787925ejb.503.1599661920206; Wed, 09 Sep 2020 07:32:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599661920; cv=none; d=google.com; s=arc-20160816; b=UW6LE2BYRJWr0GL0nbWntFWlszGqWlPFVoC1dYgwo6+SqpRyfT2mKzaQqUgBq+7Mmp YB17a965CxZvAVhymbLf+9TQ6KoQhjyrNCaIzPcAIQfPGzynHEF2WL2IVTllqYDQ5zye K3TIaFGu8AZEtcyu4sMe22uDXe9cUHXCzd4QEhZMBHhYQYPb6ZqjKgmgXHYHMVj9lrH/ z4RDJZtpaME0oOrAiBS88lG9u1gDDu/0pRuzXMktaaXN+WAE6LidcKajXwC95xj6aSmw cG2pBDTlDuwUVnnbmrTgh/quYIZMpj34mKDZVJYjruZw5Ni5EZuxTX1EVwlqxAVGVTWw vFMw== 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=yxI3mvOKdbfbeoulTR+Fqgxvtx0azMqhRHFme283+Wk=; b=rep2Xcedw0HGN3umLkOGU24NrqTSP2/g9Z6SsA4IRCR8/HHKKk2J3LpPl35g9gx2Th +2Tn0jY3dFv+nFgkweIXQnFRKbwDF6VhfxYNE3HaaWVeYRwup62wY+ptURCQA++RcG6z To0wx5/5rE86leBbnh0eap8vJ8UGvqNTWKq8RHMOV0dnhJBsZD8kOD6gDmAInhOQbbbg NuZsHx66nWB53PTyPZxIWHRqGW/Nn/hArY07Tww/CAatzCovI+GIPZO5krvD2/1VSwGx eHge15JYgJCWNxbNmbcCT9rJnMXiTKBZwM/mljXrl9d3qVl+Fyrt113wfBU+o7MxxlLJ zNIw== 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 n2si1400209ejd.578.2020.09.09.07.31.36; Wed, 09 Sep 2020 07:32:00 -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 S1730486AbgIIOZE (ORCPT + 99 others); Wed, 9 Sep 2020 10:25:04 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:57440 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730210AbgIINAj (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 5236263E7B92450A7C16; 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 4/8] drm/amd/amdgpu: fix comparison pointer to bool warning in sdma_v5_2.c Date: Wed, 9 Sep 2020 21:07:16 +0800 Message-ID: <20200909130720.105234-5-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_v5_2.c:562:5-11: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c index 46a9617fee5f..34ccf376ee45 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c @@ -559,7 +559,7 @@ static void sdma_v5_2_enable(struct amdgpu_device *adev, bool enable) u32 f32_cntl; int i; - if (enable == false) { + if (!enable) { sdma_v5_2_gfx_stop(adev); sdma_v5_2_rlc_stop(adev); } -- 2.26.0.106.g9fadedd