Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp619461pxb; Tue, 2 Feb 2021 13:24:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhCIA2ESv1GFsYhKJ2Mqu1jldaURkq5WNpQRKFH6+GICs6hwKA9kCJXfOmn2bqB43JcVAA X-Received: by 2002:aa7:d1d7:: with SMTP id g23mr78362edp.6.1612301080106; Tue, 02 Feb 2021 13:24:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612301080; cv=none; d=google.com; s=arc-20160816; b=oh4zj+wcpvMu8wBVa0fm8RIyaz5wXgUzwnmfN8FwM0OHFqw8hpI3RaDtwdo/5zZfAM HEM2EjZegItFVIG1rp43XqpkyS+qmnaNIWr4gOO4EnMdzGon20U7KrFV1SR8lq4Iz1l2 sz/edR/nhL1zHkibVxrXNBCy6a1/ZDvqLmfhMXoIjoIJyLHKjJ7E5+DczXAY7cIr6x1o VaZ+cYElDTrvZAmlJwwFXvvEsPO/hgzgyqwj7rbtFAuHLyuYAxTavqd4QidAfATYEL9h vNK6G6vPCzHRGBHY0WkiI9kHfwB3te/HcE4pjFnN79tpDRHeD7qM2dmCIiOb3Lsp1F6S XxRw== 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=I46e8UhsrInvP8y4XCQZ7ej+59aqM/xPHVHSj5wxUsk=; b=xDyS2FSrjReYAx+SJYvZNRLQFKBmSGos2zYMvbi4W/Ii8hP5P3Suy0Jzsljb/p4gFm SK8/ToGNmOpqEji3bjxMPiAgntWJvrbjnZkkLoGHdjihZZDhMPIem8LRdIDO8OIaHiYM +oX7E1DC/E9AdwvXd9ju8nCdKfK48mO+7kstNY9x9+lhFXtv09HYrQneemcV6ybs+WzT jkqd+vp6VYBMA2hVMWb+jK2vKngCFyuJpNgA5whqqC3eaJUHKDD2w2dbj8nKmcQCrHUB ZBTlkR0KTDPNumjnYhWA4nlrpf2mn7HPVAaz5wYTve+GgX/VH+a6FxadRdg+affgx1Qc 5m9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j19si1783600edq.356.2021.02.02.13.24.14; Tue, 02 Feb 2021 13:24:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229636AbhBBM2V (ORCPT + 99 others); Tue, 2 Feb 2021 07:28:21 -0500 Received: from mail-m17640.qiye.163.com ([59.111.176.40]:43364 "EHLO mail-m17640.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229511AbhBBM2U (ORCPT ); Tue, 2 Feb 2021 07:28:20 -0500 Received: from ubuntu.localdomain (unknown [157.0.31.124]) by mail-m17640.qiye.163.com (Hmail) with ESMTPA id 7EA72540468; Tue, 2 Feb 2021 20:19:32 +0800 (CST) From: Bernard Zhao To: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , Rodrigo Siqueira , Wenjing Liu , Aric Cyr , Qingqing Zhuo , Martin Tsai , Hersen Wu , Vladimir Stempen , jinlong zhang , Joshua Aberback , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, Bernard Zhao Subject: [PATCH] amd/display: remove unneeded variable: "pattern" Date: Tue, 2 Feb 2021 04:19:24 -0800 Message-Id: <20210202121927.15153-1-bernard@vivo.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZSk1MShhCQh1KShpOVkpNSklJTUNITElDQkNVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hNSlVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6PCI6TBw5DT8NEzY9MigBKQg1 VhBPCz5VSlVKTUpJSU1DSExISEpDVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlKTkxV S1VISlVKSU9ZV1kIAVlBSUNDTDcG X-HM-Tid: 0a7762af0364d995kuws7ea72540468 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unneeded variable: "pattern". Signed-off-by: Bernard Zhao --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index f95bade59624..d77ae58210f6 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -126,9 +126,7 @@ static void dpcd_set_training_pattern( static enum dc_dp_training_pattern decide_cr_training_pattern( const struct dc_link_settings *link_settings) { - enum dc_dp_training_pattern pattern = DP_TRAINING_PATTERN_SEQUENCE_1; - - return pattern; + return DP_TRAINING_PATTERN_SEQUENCE_1; } static enum dc_dp_training_pattern decide_eq_training_pattern(struct dc_link *link, -- 2.29.0