Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp203592pxf; Wed, 17 Mar 2021 20:15:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9zNkvYGuMRa7qcKPgbrlyLLV+cuGyr3Mz2ImQWFS5roNTf5oWkRFeZbwJ6Fgpvo4R0IdP X-Received: by 2002:a17:906:71c3:: with SMTP id i3mr26611717ejk.391.1616037313104; Wed, 17 Mar 2021 20:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616037313; cv=none; d=google.com; s=arc-20160816; b=SgC1jpxQUe5nmodyv9gYThhCm7JFIFltmp2lZbH+cD5+Znh/gf6wzhQnO/gku7Oo2B 2AaJGYfY69OoUw/b+0hS56rHRkefar80baeC6TKq9Y5zvcCcP0rUSdEiGFb70Rp8XTiC U23pRDZ2K4q9BTTtvFpg10fQdafV1QbzcsUl0e0vD8Lsr+DawjyymkAzQ7T733E46BZh muKObpjH2onw5F/xKBiz9z9v+509W5jpTN/uiNvjoieG7dq2Th0xE8nFoS8iPMD1O03K DPwobibN3G1UBR1/o9nc4ccPMpXaAa/wmsU5K9wSCWfBI8QY0V0mKqEDqn0Ji7uSgIlC WHDw== 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=hQttFW1C06IjLp+yLCYHr9yAyp/8boQfWdvRpg9aqas=; b=o0D6h/MCV2cXR3DYk2YGQbtw93fqpsGOZIo3xdloN3kh4VFE+CzOTClgC6pklMFVL4 bZPt7onbw38MSsgCUKsewmGvF+dxC3Vb5RHDxkhjrW/Q6AgJhZgK2UCVgQR6zQfSLZn6 obUvZaEbw9YRqp37wg3lMl+taCSFdzu45qf1cleMj9qZXdUUeP6SDtWR3N8UoEFHR2Oq QMBHXYTluWbsi2dlc50gLS0RGplyPb1Muo3LTS98eOT6SQ7vOPCO0kNAF7dAkXf8Hhfg CXp3Uuyni49hbjHNFVvVt9qKxOsDNXcaLn8PfoqhxuOrf9m1EZwWsVnpUzHfdXdj5UhH VxYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j+V6eiKG; 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 lz9si566806ejb.57.2021.03.17.20.14.50; Wed, 17 Mar 2021 20:15:13 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j+V6eiKG; 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 S230245AbhCRDKe (ORCPT + 99 others); Wed, 17 Mar 2021 23:10:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbhCRDKJ (ORCPT ); Wed, 17 Mar 2021 23:10:09 -0400 Received: from mail-oi1-x233.google.com (mail-oi1-x233.google.com [IPv6:2607:f8b0:4864:20::233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6BBEC06174A for ; Wed, 17 Mar 2021 20:10:08 -0700 (PDT) Received: by mail-oi1-x233.google.com with SMTP id w195so853393oif.11 for ; Wed, 17 Mar 2021 20:10:08 -0700 (PDT) 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=hQttFW1C06IjLp+yLCYHr9yAyp/8boQfWdvRpg9aqas=; b=j+V6eiKGG2VjOHFs8wnpC7+raQP+TbyQPcX/6o2YbdbGSLuXoq9j8nK5IOJ4GR7YLR 4ZFjt0pkrCHiOqgnq4XsWKZDsUYRRiV6NrcrBDMGWkZZALNumhET7LpOI4/X84/Kvkqy 0rSSY2rgqIVKepPCYfvyYsV7IUAjHLbHfn9vaLVUqPqMMCX8gNF6hFgkPKWtiUxRiw3M AIvow+LbItQccZ5GF1Z00xWted2Bkj0M93XVqYsSn/RxYhABMqAwYgyykuDAHt6/r3XH tiKXMrpMlmZzB3/+HHc8LgjksHM5mPMz7E5EnqjMezp3zN7mia2rufpeUH9MOsXs201w l7nA== 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=hQttFW1C06IjLp+yLCYHr9yAyp/8boQfWdvRpg9aqas=; b=iVy8xL0X8W/sdFELzWTeVnUL9M3AGbUwBChKSTzuucZ7xCPVmR+5J8vITp0UmjGn92 dpDtqld1mFFEBjjuBJOAWtwtrUv7fyYK08Q6+WJWz4Bc8t4icy580GqH0wFObBKOiiGv NFRGPglbgqH12DUH6uqA/XMMYO3lPiF9X6dHkuVQ1DAJWDQtWycCsdq4WHdkMQg1Xv0Y abDoayMRF2he/xMmBT2WXk0+3Ml6+GKr/5sGS9Sb+C3HtcgQfovtUHpa4oxlmiehrBjy Re04J9TUgIRC51SKILRgGP0XtjcsQ5B8NCGHomJ3sKQGym/HDtb49Gm8e/XPJscrI4or wTLA== X-Gm-Message-State: AOAM530Z+tusAuRhn3vI4FMF2VJs6lmRFZDFEDumms+VYkE91FpFMGnF SLgi0Md5i+mbxvvqM/E/WkjcBYBVjnf1k3VbAV/bLYHL X-Received: by 2002:aca:af10:: with SMTP id y16mr1501636oie.120.1616037008216; Wed, 17 Mar 2021 20:10:08 -0700 (PDT) MIME-Version: 1.0 References: <1615882129-14822-1-git-send-email-jiapeng.chong@linux.alibaba.com> In-Reply-To: <1615882129-14822-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Alex Deucher Date: Wed, 17 Mar 2021 23:09:57 -0400 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 On Tue, Mar 16, 2021 at 4:09 AM Jiapeng Chong wrote: > > Fix the following coccicheck warnings: > > ./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c:721:65-70: WARNING: > conversion to bool not needed here. > > ./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c:1139:67-72: WARNING: > conversion to bool not needed here. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c > index 6e864b1..434d3c4 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_dpp.c > @@ -718,7 +718,7 @@ bool dpp3_program_blnd_lut( > next_mode = LUT_RAM_B; > > dpp3_power_on_blnd_lut(dpp_base, true); > - dpp3_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A ? true:false); > + dpp3_configure_blnd_lut(dpp_base, next_mode == LUT_RAM_A); > > if (next_mode == LUT_RAM_A) > dpp3_program_blnd_luta_settings(dpp_base, params); > @@ -1136,7 +1136,7 @@ bool dpp3_program_shaper( > else > next_mode = LUT_RAM_A; > > - dpp3_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A ? true:false); > + dpp3_configure_shaper_lut(dpp_base, next_mode == LUT_RAM_A); > > if (next_mode == LUT_RAM_A) > dpp3_program_shaper_luta_settings(dpp_base, params); > -- > 1.8.3.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel