Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2449923rwn; Fri, 9 Sep 2022 14:04:06 -0700 (PDT) X-Google-Smtp-Source: AA6agR6E8YouW4+PrhUIE8AfFoiAgurBCNRzNGC7ipr9orBWqgRq/drrb41ZHk7tkGaHdTXgsEGG X-Received: by 2002:a62:5443:0:b0:53b:b934:ee8e with SMTP id i64-20020a625443000000b0053bb934ee8emr16226840pfb.10.1662757445810; Fri, 09 Sep 2022 14:04:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662757445; cv=none; d=google.com; s=arc-20160816; b=WXDu3J/X9yalhBNMVICo2nfFoWWOsv9lcf9trzOFA7jwA0dV/4XUgiEWKhCJtk0bEG /pWE2n4ClU1JeZDkyYGYNqMKKc9U0p131Z69ubiIdz4L4+jTcI8d23mnMrC4iQNu9A0y g/cvT4R7lPu+WoAiEUgPXe+jGNcTCIQXrIUVz7tzkE75/h8xoDAMFydkY8UcCeABnmTE 0sTBSm9YuHqH7pT6iaUlyRSVR7gQCI5Y56IDJQJ4shwtj2XhD+RaV8ctHNgiI7ucor6y OOSyU1W4/sGmBOMJzh5sKEsmSvB/wMwks1uJQLfbnsofBKpRLhgOUURU2I6cnjNYcKS2 uvFw== 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=UpjlPyvLcw4N5LfAVf39R6W0A9McL24cYMQux8ptGv8=; b=H/yquZuo0VI/VcbBslZz6CUkQjUFltH1KdO+Hy3909+qK6/b2/MEmSd34mig/pFL5f IwxptPHInGwFciRuEG7w/Ha087gya1D3E5F03eaowWb2hXqCtYI08VdlvvsSXiqQPjXX expPMiLawTCoTwLmdivsiESwXA3IHpahjcq0flfjqCkO3OAVuk6/SgySsvHKduLkAP9z WxFWCRE4ECYsseLW4wwVjMjGyArtC78qx3qp/AKPdlsL0V+ms5lv58LsyrV9v5KePulH 7WlrLvY4WZFTX+099TGPpcK66BECd7c5fHyPHomSUBgrSmTbs0fhEvFCm2L3Wi+/Lxo1 c8DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e7HTVip9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a170902c24200b0017336c464ecsi1412838plg.407.2022.09.09.14.03.53; Fri, 09 Sep 2022 14:04:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=e7HTVip9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230394AbiIIUnW (ORCPT + 99 others); Fri, 9 Sep 2022 16:43:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229755AbiIIUnU (ORCPT ); Fri, 9 Sep 2022 16:43:20 -0400 Received: from mail-oa1-x2a.google.com (mail-oa1-x2a.google.com [IPv6:2001:4860:4864:20::2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D666125184 for ; Fri, 9 Sep 2022 13:43:19 -0700 (PDT) Received: by mail-oa1-x2a.google.com with SMTP id 586e51a60fabf-11e9a7135easo6984948fac.6 for ; Fri, 09 Sep 2022 13:43:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=UpjlPyvLcw4N5LfAVf39R6W0A9McL24cYMQux8ptGv8=; b=e7HTVip99SqvqlRZXZalCOLj/1aFRkt+uGXux/sme46CxsjwtMp+xi7Uqnt0bgf1EF r55WBVxyF+PHAVpNFPwxSSAmQ8dLlHLPSq/IQsglAGoFpR+9oE33Hi2HAxmKBPg9yN7a 1CcykSngo3e/TdSKIVGFIUvf0TdXX2SnrRJLLPjtv2C56Z0Z5UcKWzr3fXvIsX+zd+jq 5zrekY3mfYb7QxEW0gJ5OcJHizC5Q3dUDEWEmDVj59QZRCikXp3eztjQI7uyF6glIACs PxlJv/rdKi0M1lDNE8+0mgsnS+/LPUI+GvoDZKMEB1AOVwVNJyKXv8fgqCabiKkRsrWv ozkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=UpjlPyvLcw4N5LfAVf39R6W0A9McL24cYMQux8ptGv8=; b=nASPSLsv7vahGmt0qkTZUTwbxlVKiguYB8CO2Df79l7OMq2CDysH2GYD/DCkHcPuY6 vWHPG4ikxz7Dcz2YriNrE0dm0LcEyX3YJycbFS3yc11IBliFVt/eHoYKYWThhh7oQcci 0mlFl/g4axnJcqVPomqtzV8m2nFKsPV86El+86JmNTPj/IHknyeul0uSCzznc5WcdpZH /Dxqxrcko0T0fOvgBC0WaOEN56XzMIWTKX53kvxOhkv8unMKS0brhjZi6ynKOvANNeWm ouREenFlqkeStEE6+tAhTuj3CqAb6u49DTW28spx7/AgCuhfGr5JYk5q43uI67MiH0hj rnow== X-Gm-Message-State: ACgBeo22QvYl6J3NddYP92cXlcOevdA/tJ0/DHnELCvkgHJGXGsEq7Se pUiZMBjRCksXNTiYxrpMPzTEx+gt6WsQbEZA9HQ= X-Received: by 2002:a05:6808:138e:b0:345:13d1:fd66 with SMTP id c14-20020a056808138e00b0034513d1fd66mr4517729oiw.96.1662756198847; Fri, 09 Sep 2022 13:43:18 -0700 (PDT) MIME-Version: 1.0 References: <20220901081131.76486-1-yang.lee@linux.alibaba.com> In-Reply-To: <20220901081131.76486-1-yang.lee@linux.alibaba.com> From: Alex Deucher Date: Fri, 9 Sep 2022 16:43:07 -0400 Message-ID: Subject: Re: [PATCH -next] drm/amd/display: Simplify bool conversion To: Yang Li Cc: alexander.deucher@amd.com, sunpeng.li@amd.com, Abaci Robot , Xinhui.Pan@amd.com, Rodrigo.Siqueira@amd.com, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, airlied@linux.ie, dri-devel@lists.freedesktop.org, christian.koenig@amd.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Applied. Thanks! On Thu, Sep 1, 2022 at 4:11 AM Yang Li wrote: > > The result of relational operation is Boolean, and the question mark > expression is redundant. > > Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2027 > Reported-by: Abaci Robot > Signed-off-by: Yang Li > --- > .../gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c > index dc501ee7d01a..e4fd540dec0f 100644 > --- a/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c > +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c > @@ -1873,7 +1873,7 @@ void dml32_CalculateSurfaceSizeInMall( > if (UseMALLForStaticScreen[k] == dm_use_mall_static_screen_enable) > TotalSurfaceSizeInMALL = TotalSurfaceSizeInMALL + SurfaceSizeInMALL[k]; > } > - *ExceededMALLSize = (TotalSurfaceSizeInMALL <= MALLAllocatedForDCN * 1024 * 1024 ? false : true); > + *ExceededMALLSize = (TotalSurfaceSizeInMALL > MALLAllocatedForDCN * 1024 * 1024); > } // CalculateSurfaceSizeInMall > > void dml32_CalculateVMRowAndSwath( > -- > 2.20.1.7.g153144c >