Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3031510pxb; Sun, 28 Feb 2021 22:56:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwE06e5SXg7zYcRK6nw79+K1XLk17GQE9NprrQhQYt/m/OBoZdquiliTzssdwaxbc0BCExe X-Received: by 2002:a17:906:c0c9:: with SMTP id bn9mr14856493ejb.318.1614581775632; Sun, 28 Feb 2021 22:56:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614581775; cv=none; d=google.com; s=arc-20160816; b=cPOnUZaJFwlAv9+WeXXu0sp6pAWvm9shGC3XGeRmcknAS2aCz1th68GgRoFyIr+udB 68kHyD9nnIAICTJyRqfGChdvEAwHtw83Oz6vQv+W8QHtRgnJgw2X3nXqr3MGWwGm6dKl wd8lNWc10Md/l3h9sV6X/KEGYP5dVXXUnWWYKs7VoD7GlofEOe4HhvZw2vFyINnlE/JF WNAI/XSqK8ESXHufM50q9qnOIR9V8HMA1GqJ7HDtrmHj8fcacu3S3PMwJ/n7JKEeNtLQ gKKTvzTzJh6FhCqAWzG0muBxNqrrJga6Tv69Xi2UDb4HLVnUuhBSYHuUmkNWF6+Med8p 09nw== 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=JnDJMP1FvHN0fGNXRvt+9guURkneuPeV98EsTcRgQQI=; b=Pyh0nmDViitDtL+D/pH+pMA3Qhsdq9Oyz5gxewZSDkj8XqGGWYA+/VV1R/SiYMspm9 pz3oyKtim7juNz719hr6KLlCcFg0JcweEUoRkwvq/cANY+DPGpyM/hD0rBgBwjChKMmD VCf0ZWlSa/rAGMGXcajwiuOP96WLul6OgbboBN8A1nxJKmVZ+7qXwj1hSXxNdR9qoDfk NcaU01I4DmRbi4DLAW7Qp+AdgIDM6kModx7g66aLdfE0/UseDirstqP7itJS4zeXvF32 HdHVQf11JJdmUFkSFnqAvQmkDsqoXZb++dvvFCtdGuuchLH0OCPuHYwUeGWSpZwwF5E4 y3LQ== 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 h18si4004984ejd.89.2021.02.28.22.55.53; Sun, 28 Feb 2021 22:56:15 -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 S232157AbhCAGwN (ORCPT + 99 others); Mon, 1 Mar 2021 01:52:13 -0500 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:48546 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229882AbhCAGul (ORCPT ); Mon, 1 Mar 2021 01:50:41 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R931e4;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=10;SR=0;TI=SMTPD_---0UPvx7n0_1614581389; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UPvx7n0_1614581389) by smtp.aliyun-inc.com(127.0.0.1); Mon, 01 Mar 2021 14:49:57 +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: Mon, 1 Mar 2021 14:49:47 +0800 Message-Id: <1614581387-14843-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_cm.c:298:33-38: 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_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c index 3398540..fbefbba 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp_cm.c @@ -295,7 +295,7 @@ bool dpp3_program_gamcor_lut( cm_helper_program_gamcor_xfer_func(dpp_base->ctx, params, &gam_regs); dpp3_program_gammcor_lut(dpp_base, params->rgb_resulted, params->hw_points_num, - next_mode == LUT_RAM_A ? true:false); + next_mode == LUT_RAM_A); //select Gamma LUT to use for next frame REG_UPDATE(CM_GAMCOR_CONTROL, CM_GAMCOR_SELECT, next_mode == LUT_RAM_A ? 0:1); -- 1.8.3.1