Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7494595pxb; Thu, 18 Feb 2021 11:32:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwCk8zk9ugshiMBBUH6Tz/iDy0o+TtQEvPdPr/55JvRyE4BMe6HBMs9+cL1yNaccZex5W1 X-Received: by 2002:a05:6402:4310:: with SMTP id m16mr5587916edc.207.1613676729016; Thu, 18 Feb 2021 11:32:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613676729; cv=none; d=google.com; s=arc-20160816; b=FioOdG6p+0i8yGYJdHLv823gPeW/oCv6/Wpew/zh8peZ1IgQBLjDi2zx/ASqZk6EzL u/D9102cfaM+pxNM/d8F2/mZPN3gq3BwqmJa6lmg6d2Vex312xVVBVnNlvihCCgvJjx+ Bv2D91j4/aa0YHh3WrRZd0NSzCXgzrSxyGz4Gul3ljRh1MnYjqwp0xWspbobM9RqJkxo RJWBYkGrXSjzqieHiBFQs+ZdV0P4jyWfM1siD38hdDDUkPlnTe8w4T83c2esrxpuWMD9 R1c6Ol0nrHA7+4H8iBw3OEbUElsbAvbgYQhtqHa2MqAhxSRralHNTViVJT532CmdQzNb P8rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lKc7ZspagPR2F1k2fhzcSExhZXGUtyluR76nOC+AMmU=; b=llxdHukfLxRYHpo4T986C0MPBpslXZEFMTNUyq5EgGjn5gEjrGWiwoBC3SqRspHXaQ SILnoCRxXOrpa+9xL8c0k9DhTd1cKyyG+cT9aqxD39pC96n05Y//mBySsXZ4o4ZN0hyS FWaBEcda4THSt/bKCuvp8Kjia8XBI3uDAnatNgf8pDj3lhGm0WcC2J65Q4NTmR4+e42x BsVjJduzBMPAtxxTI2iFyWlwGAZ7MzUt+8HzHgyu0Kzh0NCHkuY44VEyp2/C7z4J3ESx eyBZNMkv7qBtURLBYWKLt5uwlmjXvX2ipWiSvLw1JERVEcVx3qa7sg9wWkvcf37IzJAG 6bCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MPSrTvgm; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si4288409ejy.390.2021.02.18.11.31.44; Thu, 18 Feb 2021 11:32:09 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MPSrTvgm; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231239AbhBRT3B (ORCPT + 99 others); Thu, 18 Feb 2021 14:29:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230132AbhBRSlc (ORCPT ); Thu, 18 Feb 2021 13:41:32 -0500 Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 187B4C0613D6 for ; Thu, 18 Feb 2021 10:40:46 -0800 (PST) Received: by mail-ot1-x333.google.com with SMTP id l23so2769293otn.10 for ; Thu, 18 Feb 2021 10:40:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lKc7ZspagPR2F1k2fhzcSExhZXGUtyluR76nOC+AMmU=; b=MPSrTvgmuhmGRFVaprGSkR/fjPIL6wO9YDZX+esMkvv2liwxxbRN6Y8/YEkXcdZPum OV28GaadKDtRe6SHfgFyIhW7GFuIcHbhkZSagqQqoB7btr6trc5ZfEWdnbxYFZkRwCtk pAmW4gyTYHbCAjisATpdmFDhXb2dSRrObP4iI2igsbTEOVQeCCvxRTs3gPtbYsbA5S9N Ecok0m41skRBDeKft6BCmZ8qsX+Npv0tx3wrNRYvT9pv/eD2U1R8WqI2l1lGiecNk9fT YNLfNMtSQFyIZk74HhYlQi4MHcj8T41dyy7vSeCodjSNXvIepHax72HsKRLGyCHEPoLV WXYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lKc7ZspagPR2F1k2fhzcSExhZXGUtyluR76nOC+AMmU=; b=ND/+KCT4zg0EfxUVQ9AqIwFYYCzqvzeFo8vKZh2m5N0RToldAbVT/0C1jA2PqxSKZT e9N2Opmzjx9cOc0V1Glz3OzERLMdGzvosNi8iQUm6ONGSB+g7ngKKNpBz0H7kDZwq6p3 WtfVRKh2auIzed43dMoVl92OUWu4510pdOVuJPM/O/iLGWaEq5abTvx2XGpfq7vgFJ2V jdBhyHzd7aKqIQF8GF5nP7DH8ZorNaq9ici8G/1vbEiQlbBmlPEI8Lvq4WqCL+8jBS3v x3ER0Z381tC3Dnrfv6q0U2E6p1B+hvqwNcKINxoBR0REWIFtjBZyHiqD1pt3w7LoWQp4 M1zA== X-Gm-Message-State: AOAM530zykIElsj1pErqkTEVRCnTUCI2vFHvFpOHUlaVFhVxxPI4Rrxf zojIPmETlr9204ftc7YYaAAsA55umGjAMpH8Z1iTQveO X-Received: by 2002:a9d:760a:: with SMTP id k10mr3972185otl.23.1613673645475; Thu, 18 Feb 2021 10:40:45 -0800 (PST) MIME-Version: 1.0 References: <1613633644-52961-1-git-send-email-yang.lee@linux.alibaba.com> In-Reply-To: <1613633644-52961-1-git-send-email-yang.lee@linux.alibaba.com> From: Alex Deucher Date: Thu, 18 Feb 2021 13:40:34 -0500 Message-ID: Subject: Re: [PATCH] drm/amd/display: Simplify bool conversion To: Yang Li Cc: Dave Airlie , "Leo (Sunpeng) Li" , LKML , amd-gfx list , Maling list - DRI developers , Daniel Vetter , "Deucher, Alexander" , "Wentland, Harry" , Christian Koenig Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! Alex On Thu, Feb 18, 2021 at 9:23 AM Yang Li wrote: > > 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 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx