Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp170464ybc; Fri, 15 Nov 2019 19:43:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzOhu7Zoq+6KZKUETJ1CC9Xz0UOpT7Ac4I/ZTjZ9lY7wPLPobleirOYtlosnwDSzIolj32B X-Received: by 2002:a17:906:230f:: with SMTP id l15mr6285955eja.222.1573875823433; Fri, 15 Nov 2019 19:43:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573875823; cv=none; d=google.com; s=arc-20160816; b=rdjTtKyOpGMxJwhhwIdTJYmDyuQv4louYxr7RuuHjHZIbY9PlJ7cnmHrzgzCdJwtpj C+N4nM0IkI0g3/YL/j5JfsEUbpb9tMEZAGT3VDIEmzairwfJP62N/NX6kdsJDSLCcp3e IH5CJC+dXPGLzXarE9QPPW9pKbQp4MiWcd1p+xqtVc4Mu/xfryBdNGo8cHA79rxdB14w gjLwcKkLZfjB2eW99TxkwLW3goxFLMJpusVwBP4KnQFvJZL1R5Emit0beHB6tGo2lnIK OpXCoYIriKYYX5U2MGQLZnkh4EhuCjGI+MHXTJQERoVRCHYjMIoqnDtTlIsqf6SPJaG9 Ub5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=6v1NO9FJrymhE+IaZRwgdF5VEqH6EDfbnUD99ocvVwo=; b=GqSFYRv6lAYlSCijy/cdLUTNTcZdYKKMtOxwREedJqTHGJSJiZuiPHn7FxrgBaW+w/ 5Vx7APr2HApBH4tzVmniQ0KffwAF87u8r+kNIBG4HSZpit9BmNNK3mhZHSFfe5M/BTBC 5BcqKJnXNt1E/DZ25L04iAJl/naZoBMlvgY9pWLgw6CK6oxeDUhlIdQFDP32qEgbFDJv eYRK8sWagknnWFNprJLVoCMAcuZBGzRFbMK6c8LeJ99R00j2EyKGHmershudLG/mAbLk n2KDHnVfv0yEwKmS73z3W8OuOTpDTLsRaRBrwPX4an4Qbo/UP61hLytruCC6AopWqB3r LITA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g17si7835394edh.379.2019.11.15.19.42.47; Fri, 15 Nov 2019 19:43:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727365AbfKPDgf (ORCPT + 99 others); Fri, 15 Nov 2019 22:36:35 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:6239 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727290AbfKPDgf (ORCPT ); Fri, 15 Nov 2019 22:36:35 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 459D3232D7737EC5CC9D; Sat, 16 Nov 2019 11:36:33 +0800 (CST) Received: from localhost.localdomain (10.90.53.225) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.439.0; Sat, 16 Nov 2019 11:36:27 +0800 From: Chen Wandun To: , , , , CC: Subject: [PATCH] drm/amd/powerplay: remove variable 'result' set but not used Date: Sat, 16 Nov 2019 11:43:19 +0800 Message-ID: <1573875799-83572-1-git-send-email-chenwandun@huawei.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.90.53.225] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c: In function vegam_populate_smc_boot_level: drivers/gpu/drm/amd/amdgpu/../powerplay/smumgr/vegam_smumgr.c:1364:6: warning: variable result set but not used [-Wunused-but-set-variable] Signed-off-by: Chen Wandun --- drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c index 2068eb0..fad78bf 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/vegam_smumgr.c @@ -1361,20 +1361,19 @@ static int vegam_populate_smc_uvd_level(struct pp_hwmgr *hwmgr, static int vegam_populate_smc_boot_level(struct pp_hwmgr *hwmgr, struct SMU75_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; -- 2.7.4