Message ID | 20201126134240.3214176-26-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156114ejs; Thu, 26 Nov 2020 05:43:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwmDxQARnm32/TJJ2jtm53pwHBFL9Y5XU0xW0v4eIYcwVCFHeAUZi8s1eqUXIkFFh98r8pl X-Received: by 2002:a63:c944:: with SMTP id y4mr2660589pgg.435.1606398227812; Thu, 26 Nov 2020 05:43:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398227; cv=none; d=google.com; s=arc-20160816; b=hwoqJlF6XU3fpOxUKCxF+fYox7NWQ/KeIyArwdw3X74mxPgMjN31fpWurgxnf1e1HQ 4aRpqSRYuQ1uyHoNLjmlsPFhC6aCbb/l70tp6hAvpaICUZ825PZn8m00Vavb4cTne9op WbhmAKMdI8tz9ng4Tdg29nyG7MTEXzA3DmREkOe01vs9U5NwZHge4BCU9xE3wM5wnBah nF5z8b+V/cP96kWlD020fqx+KW3ozQMsWz8uLitePYmiVcMgmVhfe3qnAuNZIX3oJTFb S66z+w6m9ZBeCjSkcUFWtzRswsO6B2CGAHU3XsVJrx6rODXmuyZkKBXVNSa9KLu76Wm6 d6cw== 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=k56TTzaJyyd8JqyrdTwWfTQCzp48YxB/ifU/jDXQeac=; b=MnFWd64656/5qImjesOj/iKzxXGAM3VyXKLIX45bN3KJz4DXlOTv6xfx6usPV4x78H xjsNEVc58dNQr25NItXTCN5DjiufiJz3dhkhFhmBImsSIueSn8hHa0uE3sjvcRvJ1F05 u0yvqcgb9AqSX+YsVVFXM3xGE5GeFUv/toyEJ14zlIgf0XjT2ataq7EvezeZE0sBZBGU xA0o2bhWMgV9eYXd/mf7tWMArdnfs4UUaVXlpRpy7vQEdimL6aA0Pb3GSy+X7WXo10Qo 0gi1uX+SP9kmyFDWyzbWmfuwGDnnoe8LJKyjYgROUEOVwU+YvdEk2uYtFIcShftM7nPo c2NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ALUCxbMF; 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: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id h7si6056871plr.251.2020.11.26.05.43.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:47 -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=ALUCxbMF; 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 132486E97E; Thu, 26 Nov 2020 13:43:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1A2FF6E96F for <dri-devel@lists.freedesktop.org>; Thu, 26 Nov 2020 13:43:24 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id x22so2181630wmc.5 for <dri-devel@lists.freedesktop.org>; Thu, 26 Nov 2020 05:43:24 -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=4u/cyGzH+u9QQSq+abd2+vyaNq4rk53k+eLSNkiBjf0=; b=ALUCxbMFgNl6Y+EGHLaMLveA4sRcf9yCJbgqBxya1G860rH7lp/E4PAVEFWm3w5icv 9G24r0Oq157EV/uUl3o8/Lxg/+i3kM1QXvSGpEkwSr2dNxQDTLMenKc0UCsAzx+wQh2C EksXweKKsnY37CHf/m+bXwaoBiak2cE5b4nkMfVCuHQhcPinfwjMspCz/z2wLWfXt4+3 Gifj73DXGNlj/XJseSfcCL9KjCYva6s6+/gsp2FnrpLQ303wLU7jTLG60GVLQ/EZKVD+ 5GBSJPY4QXHLwNNk5SJYvQk1jS/Z9KPf+uA7JutzXP3S1EXjYV2Mfmcc7K3PVDo+Vipg iLHw== 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=4u/cyGzH+u9QQSq+abd2+vyaNq4rk53k+eLSNkiBjf0=; b=nI3ctyqLojV5m3s7FymsMiv+kqdsFUl4rUVTsENuJ4Oq4T3PbSvXz/+FxsfbI0EXFa er/7h9OUUCzk53A0lC2Zjx+MKq2mv4eYlcKzP7bHezZr27X2R9KfKUTO2F1nukQI0M1W 5JJJ+lAIVbwZjp7KGP4JewYyqr42HwN9FHZ+cYcQ3xHwIbkwWSe+7CwwbDflq3Wbrh/J dVIwL2U08GXT15mtZWm63ixU1g7P8536G/AIIRLTHYBHuxeQVAWAjEO2UvtRSFRoQmpp S70V5X5BaBSkY6phv69iDgI8iE4/kunjpEpbVBBMr19bjP+wKqvhseLioBuQmLlF6GdO pd5g== X-Gm-Message-State: AOAM530AS4XAQXxyq2FY6Sg18RjFLXDsquu1oEbpUA4Q2fqWqTVLKf3Y FpDR7Bq6qOwhsUh5D7TKtXdzUA== X-Received: by 2002:a7b:cc95:: with SMTP id p21mr3486592wma.92.1606398202703; Thu, 26 Nov 2020 05:43:22 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:21 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 25/40] drm/amd/pm/powerplay/hwmgr/pp_psm: Remove unused variable 'result' Date: Thu, 26 Nov 2020 13:42:25 +0000 Message-Id: <20201126134240.3214176-26-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201126134240.3214176-1-lee.jones@linaro.org> References: <20201126134240.3214176-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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: David Airlie <airlied@linux.ie>, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher <alexander.deucher@amd.com>, Evan Quan <evan.quan@amd.com>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
[01/40] drm/amd/pm/powerplay/smumgr/tonga_smumgr: Remove set but unused variable 'res'
|
expand
|
diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c index 31a32a79cfc20..328e87f6c9bcd 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c @@ -28,7 +28,6 @@ int psm_init_power_state_table(struct pp_hwmgr *hwmgr) { - int result; unsigned int i; unsigned int table_entries; struct pp_power_state *state; @@ -73,7 +72,7 @@ int psm_init_power_state_table(struct pp_hwmgr *hwmgr) state = hwmgr->ps; for (i = 0; i < table_entries; i++) { - result = hwmgr->hwmgr_func->get_pp_table_entry(hwmgr, i, state); + hwmgr->hwmgr_func->get_pp_table_entry(hwmgr, i, state); if (state->classification.flags & PP_StateClassificationFlag_Boot) { hwmgr->boot_ps = state;
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/pp_psm.c: In function ‘psm_init_power_state_table’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/pp_psm.c:31:6: warning: variable ‘result’ set but not used [-Wunused-but-set-variable] Cc: Evan Quan <evan.quan@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: "Christian König" <christian.koenig@amd.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/pp_psm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)