Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp443612rwe; Thu, 1 Sep 2022 02:05:39 -0700 (PDT) X-Google-Smtp-Source: AA6agR6WnIy8LJFD+eooV1+sOXkUeYpgvBCPGk27zfyiacGkI7Srqvwc6MUJp06bu8+VOdkWSGQy X-Received: by 2002:a65:4202:0:b0:42b:d734:51e2 with SMTP id c2-20020a654202000000b0042bd73451e2mr18163445pgq.621.1662023138897; Thu, 01 Sep 2022 02:05:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662023138; cv=none; d=google.com; s=arc-20160816; b=fKJE9OZYHaxSd8A7oVlNRrxp38gTKTFx5ZZZIJZO5N07gHsYXA82RQhIMfOSOEDCh8 fW6FEYuXm2PDCsSOo0MrrODTGjtJa59PE7lr0WVce7jGLw/BZUGL9HXlRwRJXRzkNg/V Jfggb1TgHLHdPM5i97Wo5+BdVCU53qYN3diUCYJlxQbYlNRAtgk7hWmM9TXIjqgPuaLr EAFTfgk9808w2NPNze1W+n/V4h4IMzTYELSttHLV4fjqdNhQLXrjdFaVSE0YdjNQnwTS xpaTcDd9o5HNH0t9fk/YmUSlnRoR+9x5PC2zG5ih9gfznczIy2kQocXMBCgnM0BASzAW qwgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=D0V35JKYSC+jmBAMFGfXz7dw1t9n3/4PRzt6wBZlejc=; b=sEnG/GmJ1nyZ/Ox597l+glrPYcxyKkcpw7XYq3mhXGzXCAov8TeLI0CLzMvWt38TzR 7ugd7quuXG0qfWCCpHxCEn7PHiyZDZ7QNyYTcj1u/aYKqgong5jFCyP7IDfnIrReWtWF 0tBkBOqT9+BkPXBVjeLoKtzOE/yO4qMtIGvJKeAqHNGI3Hrb0jLCZZh1h8+N51Kd0Bjb jbuRG3I1Vd27d94dt45kZO1qv9iaENWqYXyCCLWYVZB/jnFRQS3D5/Sw+LKPPMmhPELQ 7w/1YXHiZ7LoSsQ/wBME+3N18yKE+ulPbbaLfV1Nsr9PXI+6rnA5kVOpuC8CE4Oor9uc r8lA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oa6-20020a17090b1bc600b001f52b9da815si4120598pjb.167.2022.09.01.02.05.22; Thu, 01 Sep 2022 02:05:38 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232372AbiIAILm (ORCPT + 99 others); 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: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 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