Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp433718rwe; Thu, 1 Sep 2022 01:53:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR5AbyXXGljmAcLd7TOHQIro7aKuRNbmqWtkYM/hFXh2htGam68pbIrgDbxgbl1XvUKk+tEH X-Received: by 2002:a17:907:9710:b0:731:67b1:dc3b with SMTP id jg16-20020a170907971000b0073167b1dc3bmr23463430ejc.709.1662022401107; Thu, 01 Sep 2022 01:53:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662022401; cv=none; d=google.com; s=arc-20160816; b=RrT14TaugEX3779DS17g3WKn9+LucnI4S7jMY21I2+Un/piUOQZg6H51dyAFbjOyEb QweQT2e80HZhahE4R9F76QJl0XSEWVaZ3N3tMiE7IpxkmYhMSuFoFQ/ncRg4LWXIFWvB aqc8muQq/UqWgfReXsboIuRZK5OKim6yEVMDeDQu5ufNeiGsGctfHuKGuzh1yfDafaQX uJ1a4XXTc2QqVA3ovNN30iqysHt09xfe8K9K0SpIh6mC4iugcSZ4Vv+sKvTW4c/pNdA7 s2U7XQ1EGzPGzKlCOi4fIcOCreV+bVeSpR7QVgg1Wu0L8Zz/wEMkQFzV1pW7dofSz9FQ 5nnA== 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=W6U/pgaPTMv8vwXX3YGT4J7eFIkN1139f96iKC5mNOA=; b=pt6nXEbpmWfhKwdRIs/X1ihC+JDwLtcwLZ0pK/CYQz54N44J08iahW24Wt+g8UCapH Qv5de0+JwsgEt9YdpX92r/A6C7ZxGlQsyz0laRydZr/fvSi7OAqe46kJ6SnQFrz6EHlx JePRAewIEMc3fzHmtkyAzg0iITVmygDO04W02uJAIDOkdqknBIqAPhjE7MCtUvQv1wvX OJsIe1h5Bd/o3WhjsIDnsnHbiAXS80c+yyYwPROQvtdDyhRsFb+cE71sbNXrnDgc8lt4 cOebyPB5+5Kp80dpGJGaIzAlPK8mrmtfBY7PgaY+xcFoyNBUn/tjSjagyRNJ006tLmyf IZvw== 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 sc20-20020a1709078a1400b0072a72bb6f80si13464325ejc.744.2022.09.01.01.52.52; Thu, 01 Sep 2022 01:53:21 -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 S233527AbiIAIez (ORCPT + 99 others); Thu, 1 Sep 2022 04:34:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233059AbiIAIex (ORCPT ); Thu, 1 Sep 2022 04:34:53 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD07821F for ; Thu, 1 Sep 2022 01:34:44 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R541e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0VNztQRr_1662021280; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VNztQRr_1662021280) by smtp.aliyun-inc.com; Thu, 01 Sep 2022 16:34:41 +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: remove possible condition with no effect (if == else) Date: Thu, 1 Sep 2022 16:34:38 +0800 Message-Id: <20220901083438.105561-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 Conditional statements have no effect to next process.So remove it. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2028 Reported-by: Abaci Robot Signed-off-by: Yang Li --- .../drm/amd/display/dc/dml/dcn32/display_mode_vba_util_32.c | 4 ---- 1 file changed, 4 deletions(-) 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 e4fd540dec0f..8f1c0e12dd86 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 @@ -4663,10 +4663,6 @@ void dml32_CalculateMinAndMaxPrefetchMode( } else if (AllowForPStateChangeOrStutterInVBlankFinal == dm_prefetch_support_uclk_fclk_and_stutter) { *MinPrefetchMode = 0; *MaxPrefetchMode = 0; - } else if (AllowForPStateChangeOrStutterInVBlankFinal == - dm_prefetch_support_uclk_fclk_and_stutter_if_possible) { - *MinPrefetchMode = 0; - *MaxPrefetchMode = 3; } else { *MinPrefetchMode = 0; *MaxPrefetchMode = 3; -- 2.20.1.7.g153144c