From patchwork Thu Nov 26 13:42:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 332999 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156083ejs; Thu, 26 Nov 2020 05:43:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJwlbDUxXrPn/+GwfXAUP3KLbtnX5IWc0PPIDLa3tupibtTjYk1n9OU+Vcik5QRB6fCPO5mw X-Received: by 2002:a62:5c87:0:b029:197:5f13:b66c with SMTP id q129-20020a625c870000b02901975f13b66cmr2765421pfb.73.1606398224603; Thu, 26 Nov 2020 05:43:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398224; cv=none; d=google.com; s=arc-20160816; b=NaL125iNjPYYSEE0bitk8m/x6VsojiAB5jtNbJ+/g2hA75iGxs3yx8d16uRe9sCUnl TfamUN5iq99Ua0Y8zV16dymEm+oWT20UiJkovVLtVdH+2qWJb9dwLpahjixQje6ywpSR kJbfvM4YZfL5ItOHaDLlpHa41tMxXH71mJtbwwugMPxYExowyGRdYvgPL82lq2NdFIVo f9IGcrNrTAA6nY5VcrwTcOlri01oSrveR7XzYZ7r7iVWFdX3lA0fVNaSNqnus529Irs8 qSI05Nhtah53k3aWJaHX36LSRZqk4NnzZ7YFuPsE07e9DKe5Umm5hdszNWAfcrjDhn8y 4wXg== 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=Ft0LtoGptmw8s/ELqIQEYR3+WSfLqBdRf192+5zv1h0=; b=jSgdZNK4GeywflSmDD9DmDNigfMAFB6vQcfvLG1y3KjRSzPmgeSo6hMb/07+S26Ozp Cn5M6Qy/KFv0a88/Yfh7F3/0bINu6ubWgokoDY8iAP3O+QRhQPk18+HzW+o4VhqP5yap yignvAF3WHrRzUZOe/82ZUyDb4W4jpR8wY5ZmVmk8MEhwaf8nq/jRD5p0fB+AeyCldDt le/i9HvRsaxCSZkJUjEEznV4/rEj8wpBJDXcbaG3vN4770Nk3WUUsMje03gUYfGfjSvE ex7rnYOGbfRhae/2THFrYIZZGyJ8/4f9j+njoedGjUgp3UOpFGzEdN8NujZaXbjUCU7J 1qwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WIR3eyDW; 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 t34si5846677pgm.304.2020.11.26.05.43.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:44 -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=WIR3eyDW; 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 72CDE6E965; Thu, 26 Nov 2020 13:43:22 +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 2E9A96E987 for ; Thu, 26 Nov 2020 13:43:20 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id e7so2196931wrv.6 for ; Thu, 26 Nov 2020 05:43:20 -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=lyYzloTK2PfirZ1Vnz7WwlEZaviGAn+VoMQZs9r0bNo=; b=WIR3eyDWyT0TNYDqtte4PXcGFnQ/Bzb+Asak+yqUlKdmVUKM+P8LwCz+pF8EULE5+/ fZinsvtDeDUkdROR8iwoQhYwsSpfiBSnsb53I/X1vvIN1Ovi2g+yPYoMopGnxjN9F/5W UPpITbQrGcPw7TF5WKmjqU7aWG2LUNkXqw+rOumjd+sUPX+oNN1dZqZDXypi2Vq2jrow RaZzKKxoYhCq/0w8IziaR/LEYYfT53WrwsrZPhrkhCz0TAwqYXXhH6zt6pnn1UWk8B8T BrAWROua9zKbFRYr3mYl4639FFMoyPQbjJhykn44Qtv5NyKrcezEoXpjDYlKciQTk8fh bFUQ== 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=lyYzloTK2PfirZ1Vnz7WwlEZaviGAn+VoMQZs9r0bNo=; b=jyOv44vLkjMUItFnF9DeR37CHsMu/gj1HtWbSIQd/Ob0Bnjt3/sMROLLZuJHjZG7ZR KaFt3xszZC4rrGcRChoIMilI8h3ERRxti1+pM08er6XgQ4qlUhbsn7kbmCOJ+VL8D6kN dMBMRaTVD/CX1FxiUeyOJhv9OT6b5DvE0Ax/PH1eVm/GvpqnOvb+XV1GBH37Ex+IQMGb Ci8WoR50KcYTFo6IqAL3QE21T7IFcyxpUf3URhNX2Khmvgr8YHns8xIwh0MK8HfvZl7V 8LnGUbpVVzhkP9erqoiP3U91jG9aT96fyrXrF6+fxpIdq5Lft0jzUiQdtTl+I2B9GcI7 KrXw== X-Gm-Message-State: AOAM532nDeoFElI7lpe9P77fDQzp6IxajO/Lnd3p4LMpVGfyUuSsxlQj kQLXH1tu69U9uRswmC9pI2Y5yQ== X-Received: by 2002:a5d:668d:: with SMTP id l13mr3839571wru.279.1606398198653; Thu, 26 Nov 2020 05:43:18 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:17 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 22/40] drm/amd/pm/powerplay/hwmgr/vega10_hwmgr: Remove set but unused variable 'result' Date: Thu, 26 Nov 2020 13:42:22 +0000 Message-Id: <20201126134240.3214176-23-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 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/hwmgr/vega10_hwmgr.c: In function ‘vega10_get_pp_table_entry’: drivers/gpu/drm/amd/amdgpu/../pm/powerplay/hwmgr/vega10_hwmgr.c:3135: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 --- drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c index 7eada3098ffcc..ac88f5483ef70 100644 --- a/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c +++ b/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c @@ -3132,14 +3132,13 @@ static int vega10_get_pp_table_entry_callback_func(struct pp_hwmgr *hwmgr, static int vega10_get_pp_table_entry(struct pp_hwmgr *hwmgr, unsigned long entry_index, struct pp_power_state *state) { - int result; struct vega10_power_state *ps; state->hardware.magic = PhwVega10_Magic; ps = cast_phw_vega10_power_state(&state->hardware); - result = vega10_get_powerplay_table_entry(hwmgr, entry_index, state, + vega10_get_powerplay_table_entry(hwmgr, entry_index, state, vega10_get_pp_table_entry_callback_func); /*