From patchwork Tue Nov 24 19:38:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 331437 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp796052ilb; Tue, 24 Nov 2020 11:45:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwj3h/gTQOsVZ4JZXZm38mSfaqPNUSekR2CZhkvRFXrPAtJibg64D+5XKvk63PXcEPS4t5/ X-Received: by 2002:a17:90a:aa8f:: with SMTP id l15mr166910pjq.135.1606247119376; Tue, 24 Nov 2020 11:45:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606247119; cv=none; d=google.com; s=arc-20160816; b=URJSiDB/Yhqtu1V8x7/eNNj8vIjp3n1cPA/R5xRkaNih80kmVDj6YMnPzNt8uO4QHj Z87jCsgWM63JcHRdP5nVJr3YB/fwuzPugu3Fd8EX9f2Um+HqNav3vGKiyHzAJ1L/MmyE CnD6Lkz1QC1yvY4wrZtL9JBmBpi6LoDlRnX0EmQ1lKa6AXvJHiAII1Q2JnWHiwQFEDXy f0hXrWrlB4frYRt928Z5fDRhhQjieJYqT4aExrVF1veYJlXFU4ZrfkYfGbhGAl7bqpuc /5pbeVhPY/Wojwg+NqtSfHRdJ4znRc1sEBmhbEyt436fvmijhbToG/tFebgp+cH4QqSA 0cmg== 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=mJnIk65Xz8pl4UWrvMCP38UkBxJVJ3yp7+XOU9eapn8=; b=KqL2roBG5Z0ohWmu8cOwDTrpooPy9U4rUmjstNFpLIhw4geVI/2SEA7jxS2ytRU/Gt BzDbI5KzR85jnLQscYrwHNNlSP4ESk9t2StDWWUt4vuH9bLXHggETTDWnbrQL6SMWeni SyO3BxPRwDnlARQ4/yKUxX1E+MhVsn2DXrqwd0Fw8lz/O00wfvKzp+vAHj24j5OCum7u J1vMHhqCrh4qAUC9dQsGRJeOVic85bS7+GyRwSHqTd78zhLZV/2ZW7KE5zJOefhLmXu3 EaSIMcpfxGT13dz4ebqHRxsq9jSXVOoLVqsZRK/gEvNnjuOlWgF+f7SFPeSY1of1iZYi /LDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GyUSflYA; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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. [131.252.210.177]) by mx.google.com with ESMTPS id o5si14457114pgg.264.2020.11.24.11.45.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 11:45:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=GyUSflYA; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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 876436E5D4; Tue, 24 Nov 2020 19:44:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 096546E591 for ; Tue, 24 Nov 2020 19:44:49 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id u12so23613662wrt.0 for ; Tue, 24 Nov 2020 11:44:48 -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=ZfvfRQ7PcXeWjD8kLGjroSyeWiIdkNR2GVd+kakULXA=; b=GyUSflYAhp72ymYdK/TLzXTC6jnA3PL8lz6LGThanbH/oCVxl6fYwFpyukGz69I60t DezilZrVxmnNrP9s53T07U8j1EadxyiUhAUlmdVbaHS1roFKfuYZvXrTgtBUdcbcMUgB 6OJnw+uSvL/4ILJOe8BZfP/YE/UnULd86LklD5mgfYSI5ngdwFDBE28hJwm0ClZJC71o xpc00paWjoWJ4v/4dfrZpXnfHsrko2HQFsaV84ZIOx8CMMvauYY4PrQYZww9jyfQfZVv qCEwhcqAARpGqb1kLIJoNDW2udIUS/DiqrH4EV/xt/8Sn0f3d2s2igUUP3ofNYBfv0CY B1Og== 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=ZfvfRQ7PcXeWjD8kLGjroSyeWiIdkNR2GVd+kakULXA=; b=YZq5UGw8xTUyE3F1zLUHEAX3X5B5AlF666pb4zhbMbQ6oCiS+MhTlweGo9PpFGe/YL 1ungUa7YORtXV2EWUyCHnOjpHp4J7IJHE/Il9tsbtg2834FG/y9fKf3m5UtksYsQoZXz e/ClF3aEr1dSN2R5TsHLHpXYAHRyafRsDlmBs/+c5AKOUNEu8jhSr20irs5aTrmmzSIa WITeP34fsAet/gxRzA0nWcg4g/4RS9AezrgvLMHcRurOYu3SzMH8D4jxjgw68FCDZxht EtuZ76B0rEzpsUFEdZpcWaQTFyYP0ZbOa67McBQED9uu7HCf3tU7Sx1Gypn5k1wQAlD/ QP0w== X-Gm-Message-State: AOAM532VIPyy7y4Ee17LWGXqjMsYrdS6bK5tuCXp8lB51PxBRPjfaLkr ay9O0wj8zn60uO4TrenDj4SrOg== X-Received: by 2002:adf:f9c4:: with SMTP id w4mr124603wrr.64.1606247087673; Tue, 24 Nov 2020 11:44:47 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id d134sm200511wmd.8.2020.11.24.11.44.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 11:44:47 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 39/40] drm/amd/pm/powerplay/smumgr/fiji_smumgr: Remove unused variable 'result' Date: Tue, 24 Nov 2020 19:38:23 +0000 Message-Id: <20201124193824.1118741-40-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201124193824.1118741-1-lee.jones@linaro.org> References: <20201124193824.1118741-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: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , Evan Quan , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c: In function ‘fiji_populate_smc_boot_level’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/smumgr/fiji_smumgr.c:1603:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] Cc: Evan Quan Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- .../gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c b/drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c index fef9d3906fccd..fea008cc1f254 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/smumgr/fiji_smumgr.c @@ -1600,20 +1600,19 @@ static int fiji_populate_smc_uvd_level(struct pp_hwmgr *hwmgr, static int fiji_populate_smc_boot_level(struct pp_hwmgr *hwmgr, struct SMU73_Discrete_DpmTable *table) { - int result = 0; struct smu7_hwmgr *data = (struct smu7_hwmgr *)(hwmgr->backend); table->GraphicsBootLevel = 0; table->MemoryBootLevel = 0; /* find boot level from dpm table */ - result = phm_find_boot_level(&(data->dpm_table.sclk_table), - data->vbios_boot_state.sclk_bootup_value, - (uint32_t *)&(table->GraphicsBootLevel)); + phm_find_boot_level(&(data->dpm_table.sclk_table), + data->vbios_boot_state.sclk_bootup_value, + (uint32_t *)&(table->GraphicsBootLevel)); - result = phm_find_boot_level(&(data->dpm_table.mclk_table), - data->vbios_boot_state.mclk_bootup_value, - (uint32_t *)&(table->MemoryBootLevel)); + phm_find_boot_level(&(data->dpm_table.mclk_table), + data->vbios_boot_state.mclk_bootup_value, + (uint32_t *)&(table->MemoryBootLevel)); table->BootVddc = data->vbios_boot_state.vddc_bootup_value * VOLTAGE_SCALE;