From nobody Mon Apr 6 23:07:04 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10925ECAAD3 for ; Thu, 1 Sep 2022 08:11:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232977AbiIAILm (ORCPT ); Thu, 1 Sep 2022 04:11:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229679AbiIAILi (ORCPT ); Thu, 1 Sep 2022 04:11:38 -0400 Received: from out30-44.freemail.mail.aliyun.com (out30-44.freemail.mail.aliyun.com [115.124.30.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D91365A1 for ; Thu, 1 Sep 2022 01:11:37 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046051;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0VNzpRVY_1662019892; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VNzpRVY_1662019892) by smtp.aliyun-inc.com; Thu, 01 Sep 2022 16:11:33 +0800 From: Yang Li To: alexander.deucher@amd.com Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] drm/amd/display: Simplify bool conversion Date: Thu, 1 Sep 2022 16:11:31 +0800 Message-Id: <20220901081131.76486-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The result of relational operation is Boolean, and the question mark expression is redundant. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D2027 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] =3D=3D dm_use_mall_static_screen_enable) TotalSurfaceSizeInMALL =3D TotalSurfaceSizeInMALL + SurfaceSizeInMALL[k= ]; } - *ExceededMALLSize =3D (TotalSurfaceSizeInMALL <=3D MALLAllocatedForDCN *= 1024 * 1024 ? false : true); + *ExceededMALLSize =3D (TotalSurfaceSizeInMALL > MALLAllocatedForDCN * 10= 24 * 1024); } // CalculateSurfaceSizeInMall =20 void dml32_CalculateVMRowAndSwath( --=20 2.20.1.7.g153144c