Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1080190pxb; Thu, 4 Mar 2021 02:44:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxu+pqCOrU49sYnh/x/BhAnWd2VkKipW5GBN9ipkMyz6kG8qQxP5x8SGhKLgK2hhc/q0ok X-Received: by 2002:a17:906:bc81:: with SMTP id lv1mr3462132ejb.135.1614854650645; Thu, 04 Mar 2021 02:44:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614854650; cv=none; d=google.com; s=arc-20160816; b=faHIE2qn/m55rctYp+VC7Drz9gKQT4RykAsv/+enTX2rty1gPNE8t+QVXrzvDi09oO O0qQTV1GFcQfm8RJa/6XoNiCfMcjCTWgo2/ADwM9FQ5wjLPKYEkhBPwhDkxOExOZb94g KkswJRiZu3KMELAQo++lOCWDe4WOQZB4+NlOWKf5jPtd0oCQ5CgQxsPKhbcnKIVNG7Yn 32OS31t8mZuDyUHIUbmia75DJNEcPaHLG72jw8hsZmRq/CCFxhH2AMUVIjnlaqgEBSgz 6S3XGhd2IbR9t0xHnbQcdmAMOUPCQYlMc0r2twlG2bv6GUvuoSN8diAT41KA4xG5TjP2 MLqQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZlgsgeTsQs4mZ0QqFliW9MCgKZA8P4oKnuooJz0fj/s=; b=VRy4z3pVywEFGmL88a+FitCZbPA7e3Bq6xxiBP55/CODwxtyZKJFyJTjMwKyn9kdNr Bgx8NdEHv0Pni/iKGnw3ws/pvvSHn4TyRhEuN9nhoikZjl0TpDBwmattiEsADqh0QKTz sTEGGoxD8YlFkylhP41XGEfWiFeXAxZu1rPwAzfmZNK4OOmuCec8gtzNcmdipzTXfQa9 WRqAXMTLy8yYdc9QMRm8Rfvjay82tqejY/YFaZZPz/ogRLCB/X4RpkaSxCI/XMq4B7jB Wjk0NzCGELj2HcsV8O5DNlrteolu20kcXlj+oO5j1YJcWKrifsBpbcz9djXUrzuPrRrt 4DaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gVaHkDSR; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si16725228ejg.405.2021.03.04.02.43.47; Thu, 04 Mar 2021 02:44:10 -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=@linaro.org header.s=google header.b=gVaHkDSR; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385697AbhCCRVY (ORCPT + 99 others); Wed, 3 Mar 2021 12:21:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349238AbhCCNoP (ORCPT ); Wed, 3 Mar 2021 08:44:15 -0500 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC433C0617A9 for ; Wed, 3 Mar 2021 05:43:34 -0800 (PST) Received: by mail-wm1-x329.google.com with SMTP id k66so6402091wmf.1 for ; Wed, 03 Mar 2021 05:43:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZlgsgeTsQs4mZ0QqFliW9MCgKZA8P4oKnuooJz0fj/s=; b=gVaHkDSRZ4XCGVHSPIw1rAYthoVgCtFdJwAry/SmYPLZyI0PyvecSEKZI/EXW4DvSV Bpqd9vwVd/8ZCypvVCmxBpYRy57M4/FRgGKDqYIq0nFYClOoTrnQyJ7ln/Q0lLfhi52t HJOLWHJFbgS7wZfDLdRrcP0fCEy+Ve3sqsGrlB4WrSqCuqfDM/tPNCgGnyEGnPCDCY3x 26PaTDSTZzi+HCKHiHpvMLoshvx2IMO5xc3fAyRXCSpdqidzTstYHM2n8/XnXM+vLmYe 4f+bhSH7K0S7757hRV6lRhNX0psijhfk3dfwCgxMunapIqceXx8QTX1q8jsGn3kYAkmf QNbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZlgsgeTsQs4mZ0QqFliW9MCgKZA8P4oKnuooJz0fj/s=; b=qkHejDyGkJwpFVwDUxbYvBeFQt5VqZZO3YCkFkq0uHkZl80optPeECM6wx2jUn7PRC aMNsjNn69ZpT53uoB07Oi7bIvOgVZ47qTJccG+3jHmWgxykU+L0eghtWkzxSirmtkvPw pFCU+Xd6aL1Erzx9MxyufpsbkCvbOSXgKI9ImFy103Yf25IiivxHTZ23B0JQSQm+KpOv qolJpG+t0Qb4dBEv96SK4wQuFSF6eGyUi3/oT5YBMDVSpc7hR+LyKPnPAKcH/w+XmSEe b3WXqM8hWby4pgeENdRQtJRyFJrHXoqbf+Vndc0T7jRV3oKJaCIeT32IcJP7mCjJibtT mnvA== X-Gm-Message-State: AOAM533B0fWXRx2UHErMlb8WS07vaDpqLBYovmYnqkXRBtDgTWIQwyCd 0iNNVkc43sE/lg/GYxfSF5zjuA== X-Received: by 2002:a1c:6543:: with SMTP id z64mr9300311wmb.50.1614779013487; Wed, 03 Mar 2021 05:43:33 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:33 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , Qinglang Miao , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH 04/53] drm/amd/display/dc/bios/command_table: Remove unused variable Date: Wed, 3 Mar 2021 13:42:30 +0000 Message-Id: <20210303134319.3160762-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org None of the surrounding code was removed just in case even a small fraction of it was functional. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c: In function ‘adjust_display_pll_v2’: drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1459:35: warning: variable ‘params’ set but not used [-Wunused-but-set-variable] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Qinglang Miao Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/bios/command_table.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table.c b/drivers/gpu/drm/amd/display/dc/bios/command_table.c index afc10b954ffa7..9d3bc3a073821 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/command_table.c +++ b/drivers/gpu/drm/amd/display/dc/bios/command_table.c @@ -1517,20 +1517,14 @@ static enum bp_result adjust_display_pll_v2( struct bp_adjust_pixel_clock_parameters *bp_params) { enum bp_result result = BP_RESULT_FAILURE; - ADJUST_DISPLAY_PLL_PS_ALLOCATION params = { 0 }; /* We need to convert from KHz units into 10KHz units and then convert * output pixel clock back 10KHz-->KHz */ uint32_t pixel_clock_10KHz_in = bp_params->pixel_clock / 10; - params.usPixelClock = cpu_to_le16((uint16_t)(pixel_clock_10KHz_in)); - params.ucTransmitterID = - bp->cmd_helper->encoder_id_to_atom( - dal_graphics_object_id_get_encoder_id( - bp_params->encoder_object_id)); - params.ucEncodeMode = - (uint8_t)bp->cmd_helper->encoder_mode_bp_to_atom( - bp_params->signal_type, false); + bp->cmd_helper->encoder_id_to_atom( + dal_graphics_object_id_get_encoder_id(bp_params->encoder_object_id)); + bp->cmd_helper->encoder_mode_bp_to_atom(bp_params->signal_type, false); return result; } -- 2.27.0