Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1716370ybz; Sun, 26 Apr 2020 02:43:25 -0700 (PDT) X-Google-Smtp-Source: APiQypI1FPVOU0neI0ErH4mh+V6nmCyKl58vw5JveHYwpOc6Eztm99MLeQeaY2kC0Qz5yL5XNONK X-Received: by 2002:a17:906:a390:: with SMTP id k16mr14009306ejz.219.1587894205796; Sun, 26 Apr 2020 02:43:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587894205; cv=none; d=google.com; s=arc-20160816; b=CLW+UEzuNNqlECjfGOqNGdPUlxrXIubZgU1y2Ov3FDGDw50RWyhDiKvdyTmGL0IO+d 9v9KV1ANACenfkRLoKaTsq7A1tn+0kAE0yYxlpimlGEgWkD0NGIzYD18ubYHIiEpMvos 1xR1x9W7jPxODU8Lu07e+1RaSBkLLZ+iFRpKO+BceiGr+1FIC/BUftfHoGmnU9Qctqdd fFVsWsT6CO7kg5uLADinur0LvdPBHGOzpfNk4AtDL8+aFubuaPMG5ofmdbFk2bYiTEN5 8xFSzZ970sArAvYzoltKOTgLVw6QvrvbvEiwZYqZPheqx6f+98Q+WWzQJyt20ygO2MJ8 4sXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=/OEMLt3w6EFKrR+tFAA5i9JP4slz+J8m6unWGj8SEEg=; b=YKFmMjOxSvxbAk4594Rnzi+DyDcZJvdfd4ck1KR8YzlYiTtqaQNnYU504F8H7X33j7 UCL3OjJEcL3paj9ZjYeOkAK5L8TwyS33oQk1W+SxkEXLHfJmm1UTXZZ7X7kqUlH+dhDj cy3euqXq/d05C3y05SGmNQCGYuulWRPzaSpI20g0ibt/3ykDFfdAYKpsZAmg74FQ2D8C O8v8esCUfmUgXJdE2IWvUurAlT2n6BkTZdhhLotteKdXa4IWJIAHuSpz1Q2Kti3m46SI GuN09x7Ybz9q7YcwSrJoXtnxrn/V9MI3H0YykrNky6wXs0p3VdhqboC64z1JjmrhHpA3 58gA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a19si6624681ejs.131.2020.04.26.02.43.03; Sun, 26 Apr 2020 02:43:25 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726361AbgDZJlI (ORCPT + 99 others); Sun, 26 Apr 2020 05:41:08 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:38992 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726122AbgDZJlI (ORCPT ); Sun, 26 Apr 2020 05:41:08 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 396F241F3037E3850052; Sun, 26 Apr 2020 17:41:06 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Sun, 26 Apr 2020 17:40:59 +0800 From: Jason Yan To: , , , , , , , , , CC: Jason Yan Subject: [PATCH] drm/amd/display: remove conversion to bool amdgpu_dm.c Date: Sun, 26 Apr 2020 17:40:26 +0800 Message-ID: <20200426094026.22962-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The '==' expression itself is bool, no need to convert it to bool again. This fixes the following coccicheck warning: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:7230:16-21: WARNING: conversion to bool not needed here Signed-off-by: Jason Yan --- 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 71309ee3aca3..4051eee86d43 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -7242,8 +7242,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 -- 2.21.1