Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp673848pxb; Tue, 2 Feb 2021 15:08:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9D/r3XKrGLiIu3OF9yTC6V092+SWmUtA55MY4e4w19WQdJFKY4kAzX/CtNzKqqM6BdAtw X-Received: by 2002:a05:6402:35d6:: with SMTP id z22mr399797edc.58.1612307317133; Tue, 02 Feb 2021 15:08:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612307317; cv=none; d=google.com; s=arc-20160816; b=V8FCpmCqvDyfpZ5L0u+XsfrqDNakr9C1REqHgsKoxNQhte90FbCzRDs+WLKA89Sd8n jYldcvXIU0GrpcKm9nvQOx6PvQ06id26a7RBcFnSyJj9TezH8jdjMR+OVqaJ+qiZrnSU IRfcti4+Mfq/jYeNrLk21mQyYauIWyYDWDXlFJ0NsREKUydW/On5UHbfVbxKaaIAm6zW Xr0V9UJoZhwO9y8pnwJ4MvPU3znf1ZaQ/VWUQEWKS3r2XGqM2tr2+NcxzYufczBS7P+0 kowv1P3v+ju7og7VRWubk49t9qeeuZ+ZKCspl/IbkyEFFi7KzulYx3TZYdQVZm76ZITV AKKQ== 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=sJafALgRjHnc3pk4hWG2YLPFbbjfz2R2r/DUy/DagQA=; b=L497U2FuByF+1G/p3x1O0XHbO4+5tyNouKkgyFabIN23RJNY+xZIgTguZhvP+e9RBL tTr6S/W2/NcyubCetWevX48gVS8ETJc/xJNsMiNwdxV5S/EDU4ml0VwjvsZmwnSXT+Ir xYCn4I+a2xfjVMqx9dXoBo94br7l6pfeNzty03DovOZBy7DrYbAxq+iLJwxXYsUXAz/B /1FR8SyNp/IXO6mcHE5ugNUUVAZ2yZOCEsrsRidnnFN9IL0cG1sUt6Bn3dQ/Uevj3JR2 ZZSzdds5G3WRo3qGjQS450+mMBzR1qSHTbYm6o73p+UnOCXdDR0kHyKBW4Dc96tfnFW9 D31g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M3b+5gYu; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pk24si172206ejb.651.2021.02.02.15.08.12; Tue, 02 Feb 2021 15:08:37 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M3b+5gYu; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236600AbhBBQiE (ORCPT + 99 others); Tue, 2 Feb 2021 11:38:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236411AbhBBQeq (ORCPT ); Tue, 2 Feb 2021 11:34:46 -0500 Received: from mail-oi1-x236.google.com (mail-oi1-x236.google.com [IPv6:2607:f8b0:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB3A8C061D7D for ; Tue, 2 Feb 2021 08:29:18 -0800 (PST) Received: by mail-oi1-x236.google.com with SMTP id h192so23377068oib.1 for ; Tue, 02 Feb 2021 08:29:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sJafALgRjHnc3pk4hWG2YLPFbbjfz2R2r/DUy/DagQA=; b=M3b+5gYuwmWiwcuRwWu9yE1WbQlWnIAFHOm0WJADOqnXCbnOsyffd86x8zBpQSgiDe BPQ7gWocTOjgVb5EcLZiiu/eX1c4bwyCQ7EN0AadE4jYz3gTJSHFfDQ2rWcqG+peltAV nklaHzB11iQslk7FL7nRFqWQ8oRZ43C3Dj5T992pf31NOyq3Y9l6nlYWcGwqf7UTMH7D VpzvOeiqV0YI+ggIbOCVFCrNxAgbdCSuvLzvlKB828Tnu51fJf1rAslWQMtaNDig614q mxLgBbaiJ/B7IQe1py410oM/+wgsKMgT/i+Oy6B73sRkDp1uD25y861chJVWVUlhV+HW QayQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sJafALgRjHnc3pk4hWG2YLPFbbjfz2R2r/DUy/DagQA=; b=hYB6F+4ZUohSfjds9RRysxOgTeHj1Hv3IVXK6KpWq3iHxSVk+/LLiaJVjxrXLj1Wgv bQiDG74Q3m1u41NX6e8IR7Ea9TpS32W+cWGpt9iOasoTnEVPRNNTzTJYLPJbf7pryFPc KGysIhTAMM+mz+kVLkiA5XPDwz0zxbN1mAcnN9lMd9sHlrESd/b70BVLEbjNbcf9YCpa Xn89O+Bm5sl96ArNMTmZ66zUn7ZrVeBOs8W6Pn7aTiux4BF1BAz4z7BGSQPaFW1SMmfF 2EjKYx8WyxJOoscfoYc7ymtwFuilk92LcbfQ4+9qS8RN7GeG/A1Qk2H+hImeHTvpBIzL dH6w== X-Gm-Message-State: AOAM532Bl3aJ4HfYE5EPFE1wXriZrytTOaHwmSoyoincdTVWuDqWGvIl GycJx9oB74/1THdi1PJ7HBMoJmPSs904L0e208cx+LTg X-Received: by 2002:aca:f5d1:: with SMTP id t200mr3189277oih.123.1612283358299; Tue, 02 Feb 2021 08:29:18 -0800 (PST) MIME-Version: 1.0 References: <20210202121927.15153-1-bernard@vivo.com> In-Reply-To: <20210202121927.15153-1-bernard@vivo.com> From: Alex Deucher Date: Tue, 2 Feb 2021 11:29:06 -0500 Message-ID: Subject: Re: [PATCH] amd/display: remove unneeded variable: "pattern" To: Bernard Zhao Cc: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?Q?Christian_K=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 list , Maling list - DRI developers , LKML , opensource.kernel@vivo.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 2, 2021 at 8:31 AM Bernard Zhao wrote: > > Remove unneeded variable: "pattern". > > Signed-off-by: Bernard Zhao Applied. Thanks! Alex > --- > 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 > > _______________________________________________ > amd-gfx mailing list > amd-gfx@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx