Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp273277pxb; Thu, 25 Feb 2021 02:02:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSKO3VWvbyGgA5vErEF2fxHv+NmuKiBEEfIlDooK4K7JGbsEMC59+/3RviIDckBs2j+iug X-Received: by 2002:aa7:c80e:: with SMTP id a14mr2077888edt.295.1614247330993; Thu, 25 Feb 2021 02:02:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614247330; cv=none; d=google.com; s=arc-20160816; b=HSHfOvNPNu6d/372wJDEtHqM1HW2ciXuaWlZVyNrBLM1bcd+guaA3x3RCCKwLCj18u PDkbQE5QnTjQF/yjXft8G8ZK/sVC5cQxxEcH5Hs7LgerYKfxSS0uDnhvCUNJh8RR/dTS lCwQWueELcK4H/MzxS2qUw2QwmODcczJUznKybh8+OZIsVDCToiRqFaVAaRsvr3OiiUK vrHvglQ0+o2n/CoDI8GPeyk26PNu14nCvTFMxR99eKXRhuesUsqQc1VJ3l6tnBGqji58 Pq+Iwc1CtcEPD0Tn5Nhchq7PTk1lLEnIFcJgmWglDWnZAPw9Kz0YFifNTjyFrLdt70YX IyDQ== 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=XMsgiLhTVG1SYrnRxc/0Es2MDBtVsWw7rOfpng3w9Ao=; b=zkyumU8bx3DXKgcWstiXXye0zAG5v9h2W+LqGjwAIKBNIb/IdThKfqiji3yuFEkaIc IUQPY2bORglD3fB4rlP7FcqQHoxNabZBjFoCqlZsTicCs7BejPYLUI2Dzl+novSn9lc/ PhnsoktWQvIgTmTbq7TfMRv/+l5lw+2ZLIVZq0kBWEYfURIjIekFZYtMqv5TOKA9OP1j Wq+dpV8PPAz9N6QMIuL+zdAAR6DiIfCfqJPdeeZXZ++ZEiK50c8LjHXvlyR4AD6G4QU+ 4D3TL9HasNfXm1/IYVsea8uSsc5UsVoTltRo0qXiTMhOYOdKocOcYCHd+85JwF9qasA8 S7sw== 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 w13si2824769edd.262.2021.02.25.02.01.47; Thu, 25 Feb 2021 02:02:10 -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 S236307AbhBYJWB (ORCPT + 99 others); Thu, 25 Feb 2021 04:22:01 -0500 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:60709 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233797AbhBYJT7 (ORCPT ); Thu, 25 Feb 2021 04:19:59 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0UPXAKmu_1614244743; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UPXAKmu_1614244743) by smtp.aliyun-inc.com(127.0.0.1); Thu, 25 Feb 2021 17:19:11 +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, 25 Feb 2021 17:19:02 +0800 Message-Id: <1614244742-67869-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:243: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_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..102f6a0 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 @@ -240,7 +240,7 @@ bool dpp3_program_gamcor_lut( next_mode = LUT_RAM_A; dpp3_power_on_gamcor_lut(dpp_base, true); - dpp3_configure_gamcor_lut(dpp_base, next_mode == LUT_RAM_A ? true:false); + dpp3_configure_gamcor_lut(dpp_base, next_mode == LUT_RAM_A); if (next_mode == LUT_RAM_B) { gam_regs.start_cntl_b = REG(CM_GAMCOR_RAMB_START_CNTL_B); -- 1.8.3.1