Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1578141pxb; Mon, 8 Mar 2021 00:39:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJzav4iC8UiAXbw9AHe+YgL81cDgCNKOKcE+1/IHs3pBKmlRHkosYX5a3WHwD60sYAH0o5JV X-Received: by 2002:a17:907:788e:: with SMTP id ku14mr14347662ejc.17.1615192746428; Mon, 08 Mar 2021 00:39:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615192746; cv=none; d=google.com; s=arc-20160816; b=gsYIx9XY6rfXq14w00je0nnaNdClzeDCeB7Kd60+wJ9AtQmGrI3Frac6/XYXOj9fY5 PkXUZnmUTxjDSZH287P96MPa148CN2Xi3VOK4IogeUbBvtxQDRFNS2o9sVpg/AqY29sW 6h8rhC2J4A7a1hJiEG8Xf28rzxdC7+OvgMR+RoEWrYFl2MXwPI6iYso94w71fR+to/X0 J5LYhJClYp1Ht7gy48LeZw00WHvFxg0z5fw6p5D8GZ1f168td3jVGNNiSo8PPClAYmvr 1TQR7BsxUaGjR9bqKx0b1QRdbITmnft7rndvED5bMrl6p15+eHf2BDZ7iIDCkZ6yRbee OXpw== 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=Eryi11lDlxctUi2zZhCgO2sKcVrSdPwrSuowg5JT7+Q=; b=M6b+So8oD+x4q9KiReWyaBC3GDcMzECejEKeVLyP6TyzW5b1VoCBftuGOUiv7BAOPF pd9YieW8QLpd0tnn3JrZfdADweIUP8AFHa/hFwJSGQcyXCVaS6ch79XvIlaU8Jvoia70 xpOSqMbSN4Z9AUOv5nIN1NIdVhA7Lxh/07m5bo3RhbMkf2D/Kn1VpftBHcf5LD1UMmtQ SI6VdZAQLlyR23ntMUK9JObMjMABkxzrIizvybs7tEZeErDW/NFKE9EQSggdiUubQvds LlJS4V588ITDEgwyA+LTc+bh2kDqZa4Jk3oJ45QjMmyUJufLspx7Par5nVAwHUo5T2eC Uzjg== 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 p9si6530492edq.59.2021.03.08.00.38.43; Mon, 08 Mar 2021 00:39:06 -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 S233663AbhCHDOp (ORCPT + 99 others); Sun, 7 Mar 2021 22:14:45 -0500 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:52779 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232583AbhCHDO1 (ORCPT ); Sun, 7 Mar 2021 22:14:27 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R231e4;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_---0UQp.mbY_1615173259; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UQp.mbY_1615173259) by smtp.aliyun-inc.com(127.0.0.1); Mon, 08 Mar 2021 11:14:25 +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: Mon, 8 Mar 2021 11:14:14 +0800 Message-Id: <1615173254-22078-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_v5_2.c:1600:40-45: WARNING: conversion to bool not needed here. ./drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c:1598:40-45: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c index 690a509..b39e7db 100644 --- a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c @@ -1595,9 +1595,9 @@ static int sdma_v5_2_set_clockgating_state(void *handle, case CHIP_VANGOGH: case CHIP_DIMGREY_CAVEFISH: sdma_v5_2_update_medium_grain_clock_gating(adev, - state == AMD_CG_STATE_GATE ? true : false); + state == AMD_CG_STATE_GATE); sdma_v5_2_update_medium_grain_light_sleep(adev, - state == AMD_CG_STATE_GATE ? true : false); + state == AMD_CG_STATE_GATE); break; default: break; -- 1.8.3.1