Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1065378pxb; Fri, 26 Feb 2021 01:23:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxd0myILH7qIGMAEtPaX/cj4gezWIyYpdvnB5CG9Mo/v/4Y3Z8KyimprZyJLa7ewqk/sBn5 X-Received: by 2002:a05:6402:b70:: with SMTP id cb16mr949039edb.11.1614331426668; Fri, 26 Feb 2021 01:23:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614331426; cv=none; d=google.com; s=arc-20160816; b=hN2JH7bNFtq/Q1B+U0h/8UXWJVGd3JhwnCbjkPIr8KPWCdl1/H+L3Hnj2VMwJDIUuE Z0lLas3h7SNbE9qjyfEe96inrszj35NkRtWkzm2MKLwNv31XZHJXo99LVaXpXJ843mqd 0etsAh0qcCUKRryBoF9wwlsRDRQSsIm9ZE8FjY0anUhQQA1/3zMuaOA/Mu5ReNdqcrJX BWXUe95BOe6BxSEzQHlfSUzCtjYLVrKQtO0+O8cyxjqnH5ez6e/rwopEu0SbD4LzQ5zw lIRpHC060lsDmCrMlHDwzs2k6uHclPFn13bFNb7ZcCvY2E8XpgJj4vkkEU+nXv0GZnP+ pVlw== 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=g0eNCfTMmmeUxT157HfRz5z2OMoCVJ60dY+fNYvsCY8=; b=Q4QwaL+RO0QXPPl42acdE9RuSvn/txAahfe/NVpjtXD3KRjzBwKBVdvE7JqLwLffd7 skJmxhEGfGVvO8vLtgNST0M7uzg3KG8vyO1XH/KAfPBgBTC1lUQ/YNEWG36enrEoAo6T RhY10QHEcb5FULd0DZaK8kSj+QKBaPmtd/aU5+FCU8DnY1SLI3JCtFGsTPiuMFaoeUFn WKRbVyPG3r9qqooTxWpuX9VIeSwRkejzWI9UubhCofoax3FNLmYUz1jlHgb8MxsLSciL 1KxqMqBGFW4byGZh/y0Aqlgg2TpU4gQC5OmVGo4lL5NOAmXgN0XpUf8rUY37aC4lhOjf GJfQ== 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 r21si5601576ejo.415.2021.02.26.01.23.24; Fri, 26 Feb 2021 01:23:46 -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 S230210AbhBZJV3 (ORCPT + 99 others); Fri, 26 Feb 2021 04:21:29 -0500 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:42600 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230087AbhBZJSK (ORCPT ); Fri, 26 Feb 2021 04:18:10 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R171e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=8;SR=0;TI=SMTPD_---0UPd7jEq_1614331038; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UPd7jEq_1614331038) by smtp.aliyun-inc.com(127.0.0.1); Fri, 26 Feb 2021 17:17:27 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, airlied@linux.ie, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] drm/amd/pm/swsmu: Remove unnecessary conversion to bool Date: Fri, 26 Feb 2021 17:17:16 +0800 Message-Id: <1614331036-110338-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/pm/swsmu/smu11/sienna_cichlid_ppt.c:924:47-52: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c index af73e14..2382438 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c @@ -921,7 +921,7 @@ static bool sienna_cichlid_is_support_fine_grained_dpm(struct smu_context *smu, dpm_desc = &pptable->DpmDescriptor[clk_index]; /* 0 - Fine grained DPM, 1 - Discrete DPM */ - return dpm_desc->SnapToDiscrete == 0 ? true : false; + return dpm_desc->SnapToDiscrete == 0; } static bool sienna_cichlid_is_od_feature_supported(struct smu_11_0_7_overdrive_table *od_table, -- 1.8.3.1