Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2363926pxb; Tue, 9 Mar 2021 00:04:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxiGWCs0ZavcbLh9f95+K3+DIoCfKzaYddOi3cuLN5bON1GSQ19T+dHBDgCUmTQO9Cb6Irh X-Received: by 2002:a05:6402:38d:: with SMTP id o13mr2601293edv.337.1615277080283; Tue, 09 Mar 2021 00:04:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615277080; cv=none; d=google.com; s=arc-20160816; b=gKR/Ji5uJ8bhmNyZZEG/9iF9mmNe+JNkzNXu/Wm5FUvRnhsu7BtNA+xlTEu+n8OArC 0ED+jktZV8s1aEXLOZz/lW9mwK/ry7RiTXd6/r6jIr32NmnInrnQvF05ZFL4OOcc0fL/ a6AMDliGh9Ld1ge+lxToMsoiI6EniyvTFJpQSW/LMtzUzr0AAE8H1c3EHYUZAGXGm/pD KNOmBwvNT0TBePtzE5RnF9EXzt+cq2gcow4xhtj/bG9NHSydWwmws5jyoRD0agGCGDQD 85zW9/dl/L5F08nnt1gamQx0ugg3dZlkwWLulgUDLIsW3uVPFiyEEHugqIqSOFvuqpY9 WvKg== 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=EfaYS+tv10HWlgRdwzUCCm9DGNJDe4Vc712DaxbpZwU=; b=JxSdtqjPn/Glhz9L9VYnMWdBX8rh9PCZ8D88ge8AEoTCOLBqk3kHSnNxV1QOFrkz1K 7buRF5aFir9bv1uD/rICtEGKPbwsqfeVOnTMpDnPHgAGDz3u+JamOPOANMh0AglHxiuE 7SMezaHjj+MUIVc9mEzORKXRkB3kayx04luy0Ww9rhto1lmjggqidAtnmosomI68jztp CiSZKeOUCKv8g93NH2T9XeKpXYxcLecWR4tQLvYcLKcNdTNPVAD+GuCxYmBRvTYqesrA ngpZEBS9okOJ982q6iAPs6rh6bMTF9sfSoltOufmCT7JApL4gvSpSKw9FxDQS+Q+Wivu t2AQ== 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 a7si9614587edb.607.2021.03.09.00.04.16; Tue, 09 Mar 2021 00:04:40 -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 S229750AbhCIIDO (ORCPT + 99 others); Tue, 9 Mar 2021 03:03:14 -0500 Received: from out30-42.freemail.mail.aliyun.com ([115.124.30.42]:49300 "EHLO out30-42.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229813AbhCIIC7 (ORCPT ); Tue, 9 Mar 2021 03:02:59 -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=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0UR53fIJ_1615276971; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UR53fIJ_1615276971) by smtp.aliyun-inc.com(127.0.0.1); Tue, 09 Mar 2021 16:02: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: Tue, 9 Mar 2021 16:02:49 +0800 Message-Id: <1615276969-42713-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/dcn20/dcn20_dpp_cm.c:896:68-73: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c index 8dc3d1f..662ba74 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c @@ -893,7 +893,7 @@ bool dpp20_program_shaper( else next_mode = LUT_RAM_A; - dpp20_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A ? true:false); + dpp20_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A); if (next_mode == LUT_RAM_A) dpp20_program_shaper_luta_settings(dpp_base, params); -- 1.8.3.1