Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7089940pxb; Thu, 18 Feb 2021 00:42:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpEs2in4+9n4GGYXz62KD+lT3N9MfAOeUnHdWy0FjFbsyzeE3f1pGv9b1pZlh6S1tTctbe X-Received: by 2002:a17:907:98d7:: with SMTP id kd23mr2963011ejc.283.1613637757018; Thu, 18 Feb 2021 00:42:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613637757; cv=none; d=google.com; s=arc-20160816; b=n9qjeAfAI7UmKPYgNitw6P1CAy89oIz3Wj+Ook8yxmed6iR4p7ZR4+8FyXJLco2m5Z IhD6H+/mSxy/d0o8q2lr6o5MTPQOpt6uVtLVPkeyvSvMu33hwNL6kx0pl6skUWa7vg1t k1TFSG33YiLog/JbHyyyKomh6eJif4uRMgx/ldCGdTs90/IhMrmRe2ht2eVkIkhtkwuR n0SsX0FgG2TkUIYdB+8VSHrJX/fV1A1OU8R2ixrbr7XauLN2JalHYkBwCYuHd14aflkt NJXbjbzidoh+LMnCbLHbYNjL76axyMMTYag2z2V3Yhlbz7DFf4/wqQKKD7TTPLHUAq2c QLEQ== 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=6N2wTovAQPqEP4nP7Y/Qsnvq62DoUv8nx6aL5rg139w=; b=mdhL9rSaq9XJecYOUAVdE49Gr9zeakyzHC2CSTXkrrRBD7C5lzZzywnaD7fxircsxe +SsP/U57dyXqW7tpFLUyuadRkA/GANY2HZAQ9Qt8yrfP239+llNI5zSIzIC3/BQQr11K G+JIToav76H+1SNCY9L8MHr9QLaULYI0DXQLRq9wn1cPoBD+VAkKTyjwUJXanHr9YNqJ BegdpakjQRrm8li5VVGRzR+vkjq/i0rslBVeEP+9flsYXo/83eXQjG8Uvhmu72Oz9Wlk STw5xF6R3t21SOwbas9jgKtC/Yb9OivGH85nNGVfsneXSRr8a0WRk9DaaVYjq+WQrZEP wStQ== 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 u1si3278734edp.42.2021.02.18.00.42.13; Thu, 18 Feb 2021 00:42:37 -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 S231337AbhBRIkg (ORCPT + 99 others); Thu, 18 Feb 2021 03:40:36 -0500 Received: from out30-133.freemail.mail.aliyun.com ([115.124.30.133]:56913 "EHLO out30-133.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230376AbhBRHlu (ORCPT ); Thu, 18 Feb 2021 02:41:50 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0UOsxSYG_1613633646; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0UOsxSYG_1613633646) by smtp.aliyun-inc.com(127.0.0.1); Thu, 18 Feb 2021 15:34:06 +0800 From: Yang Li To: airlied@linux.ie Cc: daniel@ffwll.ch, harry.wentland@amd.com, sunpeng.li@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH] drm/amd/display: Simplify bool conversion Date: Thu, 18 Feb 2021 15:34:04 +0800 Message-Id: <1613633644-52961-1-git-send-email-yang.lee@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 warning: ./drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:8142:16-21: WARNING: conversion to bool not needed here Reported-by: Abaci Robot Signed-off-by: Yang Li --- 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 961abf1..f163e54 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -8138,8 +8138,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