Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2456829rwn; Fri, 9 Sep 2022 14:10:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR7WWZ+nI5pT6m17KMSzVkk2bOcAj5df1QluSHv4zXnD1P1aGBp2RJ34c5dc4jPp6fJT0BAf X-Received: by 2002:a17:907:9619:b0:730:8ebb:9e45 with SMTP id gb25-20020a170907961900b007308ebb9e45mr11180854ejc.628.1662757824232; Fri, 09 Sep 2022 14:10:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662757824; cv=none; d=google.com; s=arc-20160816; b=rP6sLTjIX+cppH9XplZTbZPOZJU/JDCVHnTLmW0GQdC8Z1mczgj/9MyICyEUNJFinc lIzH5LVyMZCRTAJ5IpX5YkHG72kfrQ67ejnMecVwYHWipCie6wwwkggfT8RZmNg3E1Yr VMRLuH1J5KsMqS67sMQpnm1+O5l+7Z4BR2aMc2SlWkpFU9oP34e8S1hFj2z3+VgB42R8 0IbNMn9pgL3I7INi2dMFZpyxlrh4YU7Luc1SlBT3YmZxbjh2y9B6HvO12+lVlpVnZEpW ZXXirXZ5tnWAqY+LAlUu0jEH4ZwCrcPbwlDnL9DabFfDKK/6OwNubwRLRm3pUpp1gEnF J/dA== 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=GUxuNPeeQ+ibx1PJlSAFNGg7X0SdVaxQlF5DdweLpFo=; b=IcZUt9JHDuB5k57MxMsqr7lmm+0IZd8YsyVh76oTUslc3tgNie072fZeASlrR7ECAZ dZe+SEMZtNfqxK4KuDuJF/UQoDH/h1e+eamwVQ3jp1o4UhhCdmjV/ODyvEiR8UjygWCv fM2mr7+RX2OupgBhfcO3O4VSw0WXd9jSXJmgnbU4PWVp6cKjNfNBZPO2cYF1OQcDrGiw QWci77WSe764gRp6iurcSBpz5pdPihhNdkqaaCf31sk4npWu6qieJwGeqO2Lke6tUa/+ CrfGPoP+CIgJNeTxgbOLKUVcAjq6Gpp8inUYVG359UCX/8EkpRhctO7GzD0krsOBR14j 8jmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=naVN2k5y; 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 a19-20020a170906275300b0076febee8f6csi993768ejd.886.2022.09.09.14.09.59; Fri, 09 Sep 2022 14:10:24 -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=naVN2k5y; 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 S230484AbiIIUoF (ORCPT + 99 others); Fri, 9 Sep 2022 16:44:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbiIIUoC (ORCPT ); Fri, 9 Sep 2022 16:44:02 -0400 Received: from mail-oa1-x33.google.com (mail-oa1-x33.google.com [IPv6:2001:4860:4864:20::33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 37C05133A34 for ; Fri, 9 Sep 2022 13:44:01 -0700 (PDT) Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-127f5411b9cso7000090fac.4 for ; Fri, 09 Sep 2022 13:44:01 -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=GUxuNPeeQ+ibx1PJlSAFNGg7X0SdVaxQlF5DdweLpFo=; b=naVN2k5ytQZbAozlRF5lg+T98ZF+pQ/UbExkYjhh+GQAhysuPXJt6IjV04Wh+pNoj5 PxaxoRjavVSCDvVfUy1K+6E7hXwCIJC+5ORqXbWgZkMUnHnUaSexE9p92hJdzNvWLHuo Bnk1j0IMwblRGXgIklxYDYb+ZN6wr/WbLqVxkqhJeiM8SUHVLJ+vXxPoURYosE3VFLcT 1p2i5DgtYwBXk1iJ+ZTNd38PGyL/qdfx0gkeKmVzFJ+8KtFddSeoaHn6H06BqBrE1uOH 6jEJBDcijgys4ABVkyfy6gOpiohG0fUkHFl9hRyckFEsJGYcuVy47LJpBvzVEUFlbr43 MDeA== 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=GUxuNPeeQ+ibx1PJlSAFNGg7X0SdVaxQlF5DdweLpFo=; b=N0c2ip6pTm5LxxhyQmqhPWHSJl7AiTnVvYpkJxrA7QM74CsqLV4EPkkjdbrKWyaj2R E9nVyDwNO7jj8Nc2OqIabMMC48qvCWS5ZmuDffO7wbC/6WQn15uIC6oaKfy2yMtotQk6 elpc2xM6RbNEYQnounavfm1MGOMkBoVo3ou6yY23GCNmzb6FdAqbJSzK5Bn/F0PV0BPM PaSXhERHtMOj/07fDl8aI9R4QpZ3sfksvNAlpx4d9y/x7t7I3MwrrlijzqAbs4DTcHfS zSo4bfyznABS0ENrI2SDNuoRsfWf1Ox9gVHlWJnJJ0EVzNY2Ug6za1wCVzjewOqslt0K 6NCQ== X-Gm-Message-State: ACgBeo0kIxLmh+wqNbMnZMmjqM8inODPsIB6EUCyWh7J5atMxbQXhwal SHQdSipYVOqalkS6eofHRVhXD3UkeFY+sO2J4iM= X-Received: by 2002:a05:6808:2187:b0:344:eccd:3fc5 with SMTP id be7-20020a056808218700b00344eccd3fc5mr4800902oib.46.1662756240547; Fri, 09 Sep 2022 13:44:00 -0700 (PDT) MIME-Version: 1.0 References: <20220901083438.105561-1-yang.lee@linux.alibaba.com> In-Reply-To: <20220901083438.105561-1-yang.lee@linux.alibaba.com> From: Alex Deucher Date: Fri, 9 Sep 2022 16:43:49 -0400 Message-ID: Subject: Re: [PATCH -next] drm/amd/display: remove possible condition with no effect (if == else) 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! Alex On Thu, Sep 1, 2022 at 4:34 AM Yang Li wrote: > > 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 >