Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4208121pxf; Tue, 16 Mar 2021 08:05:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAw64iShQUMUShx9i0WOQIysjvAG686uRvhJXxS6l+//khoy//2Dj3wDK9xWa4oQ5yMhAI X-Received: by 2002:a17:907:9858:: with SMTP id jj24mr29733499ejc.212.1615907148309; Tue, 16 Mar 2021 08:05:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615907148; cv=none; d=google.com; s=arc-20160816; b=GdEZ05wRm2L0qCqLUhXVIkwzMnCTpQgmsDI+UPAOVNcv7aOW0F9pHjyIDVBqobzutf 2OyE3M3EKnk1nfi+Dfc0vJwraH3R+vI8ahVPlDF1Ha4i5FgsQsSoLEK8OjGU3dZXHokj hbpRKaFaX2SKXQcn+cXmNUNqxAuGGbaeiZPg3muJY0yNfN5bCBeEXEJ6x/qzzYv7C3cr u0Cbcrx4KmqgpEU/QO2AN4oNGjsaAI9Z20k2FB+MxMUn/a23sy9f5ihy1ciyXCJeCMLr doOoHHeuflJAxqwVURmUq5cxyi/ZMI40Pin0QFNBuhPl58Ps6rg5Qq8xq5nDRHjoEs42 F71A== 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=HXzlZPFtAe7gEFIYlwID5BUXDBcVGys43MQm6D5qKv8=; b=tABufJ31SbPfeIvsVwniw6ZcdfJniz/aNJ1FQQGiICNPUbAGbit2hRpvmqZbcNk0Kc 67DKSY2z6lQ9ZZ4MTgQKpug9nn+0MSJb6mVlqG3+p0FasNUA+0Bcf/oabbdECMF+BQgV //mEvcOe9Ql3TCfobAr9hxMqbZJ0564ZzQE2PZROx5SxUivHsGiVwXYBsrjpfOivoJ2T 6a7keztzDWzwUM/5foNjRobYF6ou/dqVP4JYouqwPQOFwSWhuBDJ8sSSgYwZHZGYeoP+ OiM/afdUjdR6NPDfvSbvBUwsk3vc+E8uXbv256qvRq0ppX9aogtO2jkrcIaozTQ8kgXm auUw== 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 mc14si13947866ejb.639.2021.03.16.08.05.11; Tue, 16 Mar 2021 08:05:48 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231402AbhCPIJT (ORCPT + 99 others); Tue, 16 Mar 2021 04:09:19 -0400 Received: from out30-54.freemail.mail.aliyun.com ([115.124.30.54]:35677 "EHLO out30-54.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233998AbhCPII6 (ORCPT ); Tue, 16 Mar 2021 04:08:58 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0US7bm7Q_1615882130; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0US7bm7Q_1615882130) by smtp.aliyun-inc.com(127.0.0.1); Tue, 16 Mar 2021 16:08:56 +0800 From: Jiapeng Chong To: harry.wentland@amd.com Cc: sunpeng.li@amd.com, alexander.deucher@amd.com, 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/display: Remove unnecessary conversion to bool Date: Tue, 16 Mar 2021 16:08:49 +0800 Message-Id: <1615882129-14822-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/display/dc/dcn30/dcn30_dpp.c:721:65-70: WARNING: conversion to bool not needed here. ./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c:1139:67-72: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c index 6e864b1..434d3c4 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c @@ -718,7 +718,7 @@ bool dpp3_program_blnd_lut( next_mode = LUT_RAM_B; dpp3_power_on_blnd_lut(dpp_base, true); - dpp3_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A ? true:false); + dpp3_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A); if (next_mode == LUT_RAM_A) dpp3_program_blnd_luta_settings(dpp_base, params); @@ -1136,7 +1136,7 @@ bool dpp3_program_shaper( else next_mode = LUT_RAM_A; - dpp3_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A ? true:false); + dpp3_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A); if (next_mode == LUT_RAM_A) dpp3_program_shaper_luta_settings(dpp_base, params); -- 1.8.3.1