From patchwork Fri Jan 8 20:14:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 359045 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp855812jai; Fri, 8 Jan 2021 12:15:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJz993avX+aMSFmqip5xkPtQMyBkyol17DnG7zZjvGiKd7V5OR8nhdXTwtsLPEZtym9FqQmm X-Received: by 2002:a63:205a:: with SMTP id r26mr8719306pgm.197.1610136941745; Fri, 08 Jan 2021 12:15:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610136941; cv=none; d=google.com; s=arc-20160816; b=YXqxMOL+SQBbDKMfMgSx2zJVi5P1SjoAGHwkINnfz7Svd/qUxttuAi2vvbI6LqRAlg bdpAn9YZqVqkBBz4RgRBf503I3KMuR4vWaDATPAoHoCQAaO4/pfEn4V9xEkzrKw7r7De IW4Isp7IkUGcKrM4FeblV7w/tCIagIsDkmkOwh2F8c8Znr+auRWFXW5lanMte+TgUCxA R0iZaCU8soXexMmDN5IhlI4KOTCvJlJVeolty7C1BM7pky/1gr8tvUEk7DJJVL+Is53/ 8zr80SNndQnPv3nr++1i0gU5yhwpyCirz/cROXfmuoTKPRKI0k7wkQaUr2YDuLf9gOMq b8sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=8mPxauD3EBom/q9CcHgpBEp6LX9Sq7Ynwlaq3jfInyE=; b=cg0PhWG3Ra4Fm13Vl2nQZfpTO7/KhA6+hPHOTx2dQYAaWG0Tcj8m1evv1s9InF8i4s THz5sS16Vntf11hTXvFlgmvxBCuDQPRZZw993OZ9c69zMtqJJPHThFyK5u+NyDS2uy5X CeCV0ImqG5hhX42Y876NT6fnFSkClfvYjNkNWT0jEKUYVbygg5J2qPpyONuDm8RYzvyQ eC6PXyRo4lYPSdaz13HsyUVPo9vRr9+7U0NELn1l6pBbEdM+Chg/fCrcrXAAl3l57xMs JLj0EmoKew8pufQA/BsZNbzIhOg+wOysfkXVkZXLODDqSY9bMRoFikOB8KWyNVLcSzHw pidA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DtMvMixh; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id f11si10380053pjj.17.2021.01.08.12.15.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DtMvMixh; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B4156E8D8; Fri, 8 Jan 2021 20:15:37 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by gabe.freedesktop.org (Postfix) with ESMTPS id C3A8D6E8CE for ; Fri, 8 Jan 2021 20:15:33 +0000 (UTC) Received: by mail-wr1-x431.google.com with SMTP id d13so10097302wrc.13 for ; Fri, 08 Jan 2021 12:15:33 -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=3AW/x7qxQXiLCGUIcY4DJLhUKMXcrKT9KQcLhFyNk1w=; b=DtMvMixhiP2jW+geu9bD4kDHGmsl5fl9Ja2iKoo/LWSz7Wl951aSjbLSw7RaBTX442 5F1atJsNaPHQOiYyQ5JoAbxAGynP+OLyjIBw/6HjYyZ18ZGwtucTOW04jU/NV80E5MZC +Md0dnOHAWBBWc8NefwjYCKd1nN5gcIgzNwFcAf0yKfQMO2DFkx0n7Lu2dVB+nkuyXMB 1jK7/AZdcvFiBBMlUUAYoQyJ29i2/apa8PfE2CdkSUDxkV9hBzOzr+rCJ1TQbuasdFnf NDDwcxDGe/vPoVSHlox8EURoSw2ntqNRkPsfJVL8IGlGr9+QzLY4xZtjqiMm4bFAN+4m p+4w== 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=3AW/x7qxQXiLCGUIcY4DJLhUKMXcrKT9KQcLhFyNk1w=; b=VuuRGu8IPBZcMUfik9xdMfwSxDKaFGSpf65hZ6VY4Y4PvwVzMt7BYXbpSEI/p5BoZ2 tEI6Ncj4UyevwVQ7iER4xj1gEFft2gGgnH/EUkYmQZ0pAZejpyXdAwb0IruphebAEPsO 1TiFC0QyKR4I1WUhCQ7nOJqCbHR+FIbXtEdK2IvWJsiIbjmH7rdOxMaxFwCv0otPy0Kr G3//hC2+ZQuIXG7NnHfprXCev4xGG9E4RouGBxgsKC9l7d1jaB5bvu04EEikuSfrwPy+ Bv8mGJNu0Vma91X9cZ4uMD9whoLIYvg9UGE+kwNQ/Hn1YfcHSBLn5Ag+gqAJMB9c+50Q ta7g== X-Gm-Message-State: AOAM532PbAzuqoT6L8AnABAWip1vEnBYaZAuESnoo/eqWfgqLSPI2f7g 0Mpy3UrvwBqv9b1PbQU3OYQ+wQ== X-Received: by 2002:a5d:6106:: with SMTP id v6mr5129705wrt.173.1610136932414; Fri, 08 Jan 2021 12:15:32 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id l8sm15598671wrb.73.2021.01.08.12.15.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Jan 2021 12:15:31 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 19/40] drm/amd/display/dc/bios/command_table: Remove unused variable Date: Fri, 8 Jan 2021 20:14:36 +0000 Message-Id: <20210108201457.3078600-20-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210108201457.3078600-1-lee.jones@linaro.org> References: <20210108201457.3078600-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Qinglang Miao , David Airlie , amd-gfx@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 070459e3e4070..dd893a1176979 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/command_table.c +++ b/drivers/gpu/drm/amd/display/dc/bios/command_table.c @@ -1456,20 +1456,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; }