Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3111107pxf; Mon, 15 Mar 2021 01:23:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZtLfiip6QVFFC9fZMzxXrr9ElnbWU7NZMjgpQFGJCQTU0F5boCHqIZW9P5wOMcvYDhuOG X-Received: by 2002:a05:6402:31a7:: with SMTP id dj7mr28696735edb.33.1615796635839; Mon, 15 Mar 2021 01:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615796635; cv=none; d=google.com; s=arc-20160816; b=WTKVJceq95+YniK3qU4ODQ/DUeESbq3MIXBLzexHoMhs9iP5R1btQiYLwaL52NaJtz y3MZQKKKfhI8ZpizTyPtONwxbxJVLfb4Ng1E21hqbw5QJe9vUCG0cChxgdKCgERCePig c+ycM3HT0suTsbId2KD0R/0mUaGWpwtIJEN6XXwJko3f8WsGRU2mAZj8ei29SY4utaX7 6W8aDndS3/xPOcFFDGs38MPMXkNatwPj6fP7kf/gVshzJAYGMeW+aJLDbq/NpOvy8uF9 1Jvbx4VmQMXFwjHiU4mDcTIorZaPJdWcj5IB+tioxZqQVhF9TMiNKw+f5FfDlIb9bOkj 4hyQ== 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=WN1q/Pj8Eg5ataAu+UxhElAW9PZOQN9fvh2byGZPiuw=; b=PPUprNQFG+zbUj3/RDflViB+EvIbg/H+bzP5MLDoTUwb6L6TsJJqhvqmQ2YISPw/TD bngNuVj6UyoPXCWtMLPVr8ojtM6WOMQ9p6M9vBCm0heO//FrkG6lJ9w5w+yz5JDAD3h+ MJMnIej8QHkuCzGrOY86Df9oESVxxBbsqOI9c1xlaRVqMM6c/qnbFaZzmbpoq/EN2ifj TuykujVw6VlHjFb8vbNwKhvjnLf4RhNwUnsw5JQ+YeUaK1TicS4A3yuldJXDVfxzGP/G 9C/gE1dzEk3i2AmYwOkzhr3HHKeZEEk/fo1qpbp76AFgGsCf/A/HvfBdPu9FDp95G8X9 NPMA== 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 e9si10906945ejr.278.2021.03.15.01.23.33; Mon, 15 Mar 2021 01:23:55 -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 S230189AbhCOIWT (ORCPT + 99 others); Mon, 15 Mar 2021 04:22:19 -0400 Received: from out4436.biz.mail.alibaba.com ([47.88.44.36]:5331 "EHLO out4436.biz.mail.alibaba.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbhCOIWM (ORCPT ); Mon, 15 Mar 2021 04:22:12 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R531e4;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_---0URxYio-_1615796524; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0URxYio-_1615796524) by smtp.aliyun-inc.com(127.0.0.1); Mon, 15 Mar 2021 16:22:10 +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, 15 Mar 2021 16:22:02 +0800 Message-Id: <1615796522-21363-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_mpc.c:358:69-74: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c index 3e6f760..e153109 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c @@ -355,7 +355,7 @@ void mpc3_set_output_gamma( next_mode = LUT_RAM_A; mpc3_power_on_ogam_lut(mpc, mpcc_id, true); - mpc3_configure_ogam_lut(mpc, mpcc_id, next_mode == LUT_RAM_A ? true:false); + mpc3_configure_ogam_lut(mpc, mpcc_id, next_mode == LUT_RAM_A); if (next_mode == LUT_RAM_A) mpc3_program_luta(mpc, mpcc_id, params); -- 1.8.3.1