Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2271380pxb; Fri, 5 Mar 2021 11:16:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvN9M5nqzpVxj2mChL2+NDS6j4ONB55oC0pLlW4ovreDdbTa19wGB1Zj7eFUINjaeMRQ6/ X-Received: by 2002:a17:906:8546:: with SMTP id h6mr3664898ejy.23.1614971767628; Fri, 05 Mar 2021 11:16:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614971767; cv=none; d=google.com; s=arc-20160816; b=mrSrGyCepN/vLtj/wrdOs6WhLib3Fn6ccr6s8vPRJcIQpGh/4fv90DwE5RRD8ejFqd qUjx0/te8QgjCt5HmR2RbQYzStPA4wkM0yrC6HsQJIKnxJoMGYA6JksPOoYkjrHJteZ9 Ok2OhTrJqObEB23A5fMupWddnt8M7+xBC0Ek8wHCvH1u8Gu7gbKXpQrwysDhkXHzhQf/ Bj/RxAclK25/S78CE0ops34vPN7MxUc4mXEfzvFznpx3e/zrXjLxB72k5BaMjEW6sL+p hN4t7m2LDq66/OAwgDpLY+Zw/f1K0hhE+NQ/jZl2VpXczAdSXTFmEcod/2XQvh+0g70F YQpA== 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=vYJESrZoGMMpt93wyizWTgxvC6R+AKuRSC08jpC+CMk=; b=jM1xYxMGDRpGDt9uOhLs4gjvr4rfvQEzTB60luhGN/5/GE/hbUwy3Ho5T4wjT3cmI3 eqA+9s3b55DgUAhSFNYVPu/hN9x0+c6bqafUr8S3qG5zMYujCUqDlm52g94p+45/rIfT Xgz7X8jjU17kqQeZT/JTrHiGSIxlckRHwW/Ri1mwwOf/wk9du73ETcTz10KnsI6H/5el YdMOqTW2dOTd0ECuw7f3m0F+quX0MN33WHggSO6vi5TU8/03QJI+DvgPiMjwde8f0oQW VGXXbUg0PFGeGVVkFsMvz2nxMAwfnjlfa124H3YTMkF5+sIaVRGOOy2s9c7mA1/qUbms 6tGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MAWB+Sgh; 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 g18si1993732edv.353.2021.03.05.11.15.44; Fri, 05 Mar 2021 11:16:07 -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=MAWB+Sgh; 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 S229818AbhCETOc (ORCPT + 99 others); Fri, 5 Mar 2021 14:14:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229669AbhCETOO (ORCPT ); Fri, 5 Mar 2021 14:14:14 -0500 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C938C061574 for ; Fri, 5 Mar 2021 11:14:14 -0800 (PST) Received: by mail-oi1-x234.google.com with SMTP id y131so774722oia.8 for ; Fri, 05 Mar 2021 11:14:14 -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=vYJESrZoGMMpt93wyizWTgxvC6R+AKuRSC08jpC+CMk=; b=MAWB+SghDRYrejm0VlOu78ulG5W+KnucHMRxvhboJY0NrT62+hsxlDTfkLXD5oCj7y 3f14Yn35dH1b8FF3A96mBM45mepaIFo/m2hcb9YWh82HPSS3VAjmeCZVnj3fh2WJxwuq HJ58AMb9MLnF/V+f/MxU0Pp6Qq+e0DKr0foQXOlIaxRuXGv8/949no/Ejjk82w0yTNqW BuO+qEdKT+JJnrCpR8Fv6hF2D7z0FIW3TLyyiO/WzwCfXU2N6jrz5RiWqWVNz7AD6YgS WomxAEpHm3O170IanB/lSo8LsP+4IRoDHDv9FGXAsfJsFfsc2zuP42JB4TzUFHHXpKYK bkqg== 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=vYJESrZoGMMpt93wyizWTgxvC6R+AKuRSC08jpC+CMk=; b=MhzBZhcJ2IsAdGZUwpxat8KYGZ4aFGAMpmk8+M49W0YoKKlCAOiK+SOJC9Rsgm4oz6 5siME3kL8Mcs/ZpRto/R3D+SRZO1psS5yyOpNuzhnPdAvJRHqjmD2zLf1WsNZmWBLW7q ndjwLaLvLTNTLzugByoD7E4thjKd1/LY8JG9wgrtRKX036qHcdlvL9qjXMBnqHdRaqGd ZCFvE8nId1fNMHT4ycPL/uhhEHnvlVw9JThw74ZGEau1U6wqIEvumrbL00lVpge82ApJ dx72reEpQGCLt9uPFYULS12sDyeucH/Xd3eyPtllBWPI9YQrXSAqitBS0oeyg7Ld6VXi j+Kw== X-Gm-Message-State: AOAM531G6cWCBYsP90KF4vZTxwMOC03RF92N05pUHEw3STfD7RMJaADO bjN5MXbMNoOkm5QQ0qVvYtwpGZDOVHctWHZsJrA= X-Received: by 2002:a05:6808:f15:: with SMTP id m21mr8054191oiw.123.1614971653655; Fri, 05 Mar 2021 11:14:13 -0800 (PST) MIME-Version: 1.0 References: <1614926449-68399-1-git-send-email-jiapeng.chong@linux.alibaba.com> In-Reply-To: <1614926449-68399-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Fri, 5 Mar 2021 14:14:02 -0500 Message-ID: Subject: Re: [PATCH] drm/amd/display: Remove unnecessary conversion to bool To: Jiapeng Chong Cc: "Wentland, Harry" , "Leo (Sunpeng) Li" , LKML , amd-gfx list , Dave Airlie , Maling list - DRI developers , "Deucher, Alexander" , Christian Koenig Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The same patch was already applied a while ago. Thanks, Alex On Fri, Mar 5, 2021 at 1:41 AM Jiapeng Chong wrote: > > 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 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel