Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3105226pxf; Sun, 21 Mar 2021 19:26:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyYnY/6oKub5JcRXUXQPHQac45x7pPYEAz1S9onPlj7Uz6DiUboatKPIzEaVFcAroMEgdZe X-Received: by 2002:a05:6402:34c4:: with SMTP id w4mr23951699edc.367.1616379971335; Sun, 21 Mar 2021 19:26:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616379971; cv=none; d=google.com; s=arc-20160816; b=A/zdmDbYANqFOWOpvgElkewc4ry2cwkGfMVwUtR2VSRaqZ6czp9ChlXNaYYhbvlbQm Q51XBQF50kKID0TIuzLzBWbH0cGu0BeeYY0Q8f7TzseePBQddWOQFpDwqYIwE6wiPlww 1pVxvqLYzOipksa8CgTlM0uybqaC8n0B7WhIAxYwJPX18hUUXFlZxnH31K4bPurKp2TW k7HgtYl/2UTVniE0477OhzxE6j/lah5YJDOerzzkOcOOLe9Pf9oa9LK3YlTFKCBX0W6H DDLA3vPZYAZfTFWqgH8EOTjwjUx7nd35I1J9Iwo6CjL7WN21by+gFOzjrwqV/Qwq7flg O4IQ== 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=BGnd7YUN231twEZs0NosGSFxG5vaXk4tnHjkyKFDvGE=; b=I7WdrXO4qZBArvjuJzx+VfpNwGcZE5E4J+RjqRN+dLyBW/4lW1IvqYQxQfvcfoHjvR uT0IQFiOtQtPKKlciRLidyIADUHgwZP/kmM4mTvvh8spcHIvxXk2xs4pR4titwg25V8x nFxHGlWiODB8PG/a23yjJBZndFpzVH5ja5YUQUouPUmxdCB7NYDwRwkM5kp9OKguKWOh qXNY6GjiLW3qa4JuWRAeZAXNIPQ4WYoKo3jPL/BSS4WEWXJ5IVmXGUngUtzGgMfzH4AN f5HA0OPw0smSXIWtnbDuFF7t1fIly15MgzGztSv4IbOZ1u7F56heHJWREiCPLaG+Huou Jslw== 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 nd18si10765233ejc.562.2021.03.21.19.25.49; Sun, 21 Mar 2021 19:26:11 -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 S229579AbhCVCWh (ORCPT + 99 others); Sun, 21 Mar 2021 22:22:37 -0400 Received: from out30-131.freemail.mail.aliyun.com ([115.124.30.131]:39774 "EHLO out30-131.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbhCVCWN (ORCPT ); Sun, 21 Mar 2021 22:22:13 -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=e01e04395;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0USpamAx_1616379725; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0USpamAx_1616379725) by smtp.aliyun-inc.com(127.0.0.1); Mon, 22 Mar 2021 10: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, 22 Mar 2021 10:22:03 +0800 Message-Id: <1616379723-104309-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:875:62-67: 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..5692a8b 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c @@ -872,7 +872,7 @@ bool mpc3_program_shaper( else next_mode = LUT_RAM_A; - mpc3_configure_shaper_lut(mpc, next_mode == LUT_RAM_A ? true:false, rmu_idx); + mpc3_configure_shaper_lut(mpc, next_mode == LUT_RAM_A, rmu_idx); if (next_mode == LUT_RAM_A) mpc3_program_shaper_luta_settings(mpc, params, rmu_idx); -- 1.8.3.1