Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1029341pxb; Thu, 4 Mar 2021 01:04:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJyY54diLwGnI1zYQAikpQz7QYU28SkYBqovyVRXg979znchxW6xsdLvoMjnOSPcLURSkfc/ X-Received: by 2002:a17:906:30da:: with SMTP id b26mr3079476ejb.376.1614848697044; Thu, 04 Mar 2021 01:04:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614848697; cv=none; d=google.com; s=arc-20160816; b=oM/o7zhmKOjWbsELUbi1JPTxMTnhq+Gl66tI9oA/xzh/Qi76WgI0pQUJaZapUWZnZL Ce9Nxmn0DdOKJcSo9cRTNoZZ+oNphhr3Urw7Ee4l3op4dcJhxdW9Zqic2RD2xhNC0arc TnsRbkKQbnp2IRS50opeamZdSiwm/8GxZ3+Q/LOSwrE4linHyXEGGxs3LY7QcMHosIe3 QszKpzjgXRCtlUaD5Skg1D7ZStoXf+S8sK9m/FhUiCJPXcGJiPbRoApyDbNBb574eVZd IFNJ6MwCn8zIiHPAtn1jjVXgoBDgubYSNrikapp4BHMFm5oTwKmfCjSwCIbpZvPLJGTE eAww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=y5rSGib3wSxnpEZ97n4NXnWLXEsbQ7KZYMtz2DRCdIw=; b=DRfYtquH1gtsurjviLWpxbSiUJM3++5asjzOW+8hCTMUmWAeRBBW1YeLqrC6kqa40M t/ZhuXCGxEuIP055xs+E8THVAlUW7hV6e9iKRZ+WXcHUkzqoCy3V0cgRbTeJiB70Tz9E s+mSx/tLQLxpj3FblL1DeGwA0F7UrSnIcWZlonev/1sj8vLY9Z4ivNnYPKZ2zbF1LrJX 01gVPOHVIbvHVlR2SzY9FueXRPG3ZRmEHsP8qZ6HrLduaKRaLvEJ4x/mf/O1AoCtWBOU zyohqf6DXJAKyZ8s3hMhxjbkoeP14czjP3lSjZ2dn+Tx1yjVMMl2+u82A2ZhQ5F7vdFn 5X+g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a73si16974327edf.23.2021.03.04.01.04.34; Thu, 04 Mar 2021 01:04:57 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443078AbhCCNlE (ORCPT + 99 others); Wed, 3 Mar 2021 08:41:04 -0500 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:51968 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1449286AbhCCKUY (ORCPT ); Wed, 3 Mar 2021 05:20:24 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R951e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0UQCzVlF_1614763066; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UQCzVlF_1614763066) by smtp.aliyun-inc.com(127.0.0.1); Wed, 03 Mar 2021 17:18:05 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch, sumit.semwal@linaro.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, Jiapeng Chong Subject: [PATCH] drm/amdgpu: Remove unnecessary conversion to bool Date: Wed, 3 Mar 2021 17:17:45 +0800 Message-Id: <1614763065-114245-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warnings: ./drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c:2252:40-45: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c index c8c22c1..00d3773 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c @@ -2249,7 +2249,7 @@ static int sdma_v4_0_set_powergating_state(void *handle, case CHIP_RAVEN: case CHIP_RENOIR: sdma_v4_1_update_power_gating(adev, - state == AMD_PG_STATE_GATE ? true : false); + state == AMD_PG_STATE_GATE); break; default: break; -- 1.8.3.1