Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1786235pxb; Thu, 4 Mar 2021 22:42:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJzguPDczEmBfTgCavk6FOQEaS8QahqnpXcIkCEHH5+ABFG9JsnxXdCgb5l+dzDAOIRDhDsM X-Received: by 2002:a17:906:6817:: with SMTP id k23mr998010ejr.6.1614926542581; Thu, 04 Mar 2021 22:42:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614926542; cv=none; d=google.com; s=arc-20160816; b=hbcm2jGbaxeS8tdt2W1uqcTyHgn5ur2YDKGCqwP0UyHOYgw5HufhqZD0mMBoF6WftF lhf55efAKMSvSU+lppbTB05FAVKUc3ul8rF3vfojU6q6c/zxLP1eMsDvwYz/QtBHKRxl zxKf0mELHaLuhnXezq4xhHhidBbfzhKp6meJCz5i9JCQld46BNEAdjxUHnxW007jCbra sPBKrWO3JGu3XN91lspN6u8LrBAVwaX4GygzJ8A9VydguPgwTaI8l7qCZ9tcXUT/kk9c npIWGa3jJDVqb0OtCTr83TSnStLICu0AoWr8Kaf5iQ+wtiE+nP/w80EjnSWmS+Ki0RJ+ YEbg== 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=ZEXIhK8mCmciHu2NF4guUgXxAeBOZguy7adYZymx4MQ=; b=USqL7bABSUxkhkHy0hRzMCP5tXfRXzEr83D0e34cprs3Dl+zq2U8swIoHbOgEhb4b6 a7Oq62clDGLDEAJAxR1cJ6dA8C9M3v3/i8/TrGdAHyrp+BGsGSMNL08MAVC446+dyWOd UsuBWrOFGm6qHw6MGcyc3PIg90yxnyKD/f8K4iDO42VXumWyhSqRakBzsojlYyZ+tRom atdKknyW5/1CJPB+wNFb5avafzuu5xXiMGi804q9rX4ZApGBheYe32sfppE0JtDy9slD 8+OyrPnh1Iy4jsQ4u6A41XkU1JDBSJ+sluAIAtVkT6p/yRdptT9R7nL4GGELdSpSw8TE BVeA== 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 jp23si721415ejb.643.2021.03.04.22.41.59; Thu, 04 Mar 2021 22:42:22 -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 S229531AbhCEGlC (ORCPT + 99 others); Fri, 5 Mar 2021 01:41:02 -0500 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:59136 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbhCEGlC (ORCPT ); Fri, 5 Mar 2021 01:41:02 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04394;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0UQUmC0B_1614926450; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UQUmC0B_1614926450) by smtp.aliyun-inc.com(127.0.0.1); Fri, 05 Mar 2021 14:40:59 +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: Fri, 5 Mar 2021 14:40:49 +0800 Message-Id: <1614926449-68399-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/amdgpu_dm/amdgpu_dm.c:8257:16-21: WARNING: conversion to bool not needed here. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 3e1fd1e..10de6c2 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -8307,8 +8307,7 @@ static void amdgpu_dm_atomic_commit_tail(struct drm_atomic_state *state) hdcp_update_display( adev->dm.hdcp_workqueue, aconnector->dc_link->link_index, aconnector, new_con_state->hdcp_content_type, - new_con_state->content_protection == DRM_MODE_CONTENT_PROTECTION_DESIRED ? true - : false); + new_con_state->content_protection == DRM_MODE_CONTENT_PROTECTION_DESIRED); } #endif -- 1.8.3.1