Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp187827pxf; Wed, 17 Mar 2021 19:38:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjmjIb5RecWo5er9Yt8QO8mGQZF9RGGKI5ey8sUTVwPyuWoN5Z2xRniaXEUFBP8pHodx+B X-Received: by 2002:a17:906:cd12:: with SMTP id oz18mr38586011ejb.498.1616035100407; Wed, 17 Mar 2021 19:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616035100; cv=none; d=google.com; s=arc-20160816; b=l7l9VatupzXtfA+Li1IVpQKnt4EerHkI3wJ0DuP4w6ARMCStAx0Es/Q1/S20TE2ezN EwrOQIks3L2q8dywtZAYsLvAKTAuoT3kZJDijDNWCKSWu84mk3To6pbBenlL9HkVxTXs QuWng/2BqqdAbu+EDw9ZAVc/uOJXGNirDn4mf74F96+zA5sIMJQamOGEsEzm8JJT74qN VWyf8kw/yuHkHpIouuO69jtjPPvOJRXBeoIWFw76DMJk6E4r54aHtXdVA0jEeqSsgKTs QPhAcZBueSJX/hVPrYHtQvygsieUBlVsD2QkSM1LnJ1AsyggkyN+mUJLYBTRIfniJxGW gFqA== 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=WPGJ73YwO0fxhYNlcWfIFZy7XhHAm3NItihzAk3waU8=; b=ySNLX+62eHbNatDzHKeJQk94ZMZ9K0VpBagr79ZIc8ndGU7sOYt135TLXCeIJTCAm4 KNrHsbwb7XbWRIjHAZ87ju6K5S85SMjNMZIZJcqOD8q8AEa7mO8b5sxWCIgz8L8dfuAt jfzlemoafpBHXDA+BOwtvU45bGJWo/I2mP9eBkWRBa4HU1u7aVy5qF7ZtZsy4tI9Y1Mr +JVH4TL2dq2lwkVJ9B+v+X56fDd2+8cuPbXuIL5/z06THN0WayXgc6qNffDbqvZQ+CGQ AQy/vJMaPBqq9+yH2Pj0wfyglTr60o8jkFt80nO94P6ZSyVBJic82eUQ+qgq6P5peq4i 385g== 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 c17si514991edr.46.2021.03.17.19.37.58; Wed, 17 Mar 2021 19:38:20 -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 S230221AbhCRChD (ORCPT + 99 others); Wed, 17 Mar 2021 22:37:03 -0400 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:55009 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbhCRChC (ORCPT ); Wed, 17 Mar 2021 22:37:02 -0400 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=e01e04426;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0USMCysI_1616035014; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0USMCysI_1616035014) by smtp.aliyun-inc.com(127.0.0.1); Thu, 18 Mar 2021 10:37:00 +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: Thu, 18 Mar 2021 10:36:52 +0800 Message-Id: <1616035012-88614-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_dwb_cm.c:220:65-70: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c index 8593145..3fe9e41 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dwb_cm.c @@ -217,7 +217,7 @@ static bool dwb3_program_ogam_lut( else next_mode = LUT_RAM_A; - dwb3_configure_ogam_lut(dwbc30, next_mode == LUT_RAM_A ? true : false); + dwb3_configure_ogam_lut(dwbc30, next_mode == LUT_RAM_A); if (next_mode == LUT_RAM_A) dwb3_program_ogam_luta_settings(dwbc30, params); -- 1.8.3.1