From patchwork Wed May 26 08:46:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 448138 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp5016949jac; Wed, 26 May 2021 01:47:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyC26qfyxtyk8bcSvnP05IfvC7jPIlfhzHR4oRJHrln/A4aCMl9zOr28DaWG0OdZrvj4vLo X-Received: by 2002:a63:2b82:: with SMTP id r124mr23393988pgr.324.1622018860330; Wed, 26 May 2021 01:47:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622018860; cv=none; d=google.com; s=arc-20160816; b=fVmpV/VkNFmnSsjgcEbg87AWf3Cz/olaPQ4aEj0c40dR1FA04wJijD695H1qXF/UMW EoDeXQ0m1WPXYahivXIoFS/pajqGvPyObChVIkLf0s5MFoZDu3jp+Po30VNFhhaFA6EG 9okt6l2RJbkrI04TGzK8QvScDsxO/h0zD2OhKPlFYnU+GtJb0z4tBUaZLx4/zH5UIfDW 6QjtI9Jji3JYdF3yAIIdeDLVrxQYWtoX3T+SVJ8seAGoI8JLpW4Fr22PdjCrzQTpzFSK 5dX7d462SuMRI0/Oc7tufEWZQrbG6fqq9fLQ2e34X5yCQyyH3tX2WqAXoEPvmgtZxS0F eIDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=h62MLZglSk0AGZD9SfFQbGL1zDMVzymMNWcO9Y1i7ro=; b=F+D4ddNIcfmfN1PpXNy4RfNCjdFVwO1uOcQ87QvpV902m2kBLygIMG8YyXmav8SO+h PGmrzIu784Viqam871rA3wyHhcPMWwPfB6wWU6bF0lNaaBeL0oySP7UdgMvp04/YBXOr VMzwFKA9m2EMmscT0bJJ3Qjytxih90PptjfbapXA2JBnT3m042CgTsz8BO70GV1TN95L kwJXRu8mry8NmyI/UG8Dvz/XvUWE03ZWS8izMz73pb/wYtQpIzqBt1c5Kvt20lmvATsC iyf73JJa6Do5gvXd+M9knL4a3+K1+YShFQcIFazAAlnMjFyDXTJCBbZWdc+kk6X05SHD Tnow== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=c+dra2tq; 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 t6si22682232pgt.593.2021.05.26.01.47.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 01:47:40 -0700 (PDT) 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=fail header.i=@linaro.org header.s=google header.b=c+dra2tq; 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 4972E6EC33; Wed, 26 May 2021 08:47:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0CC216EC32 for ; Wed, 26 May 2021 08:47:34 +0000 (UTC) Received: by mail-wr1-x42a.google.com with SMTP id q5so214169wrs.4 for ; Wed, 26 May 2021 01:47:33 -0700 (PDT) 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=h62MLZglSk0AGZD9SfFQbGL1zDMVzymMNWcO9Y1i7ro=; b=c+dra2tqymbByrR6z2HiTHLfe9C2WgmOkQAwerg+mh5Ku0VofhpS6ze9r0mRMdT1pk YPNN+MYXY5re7Ot54h7F2ty2q32Sv75cj5GX/2/udd1GJAjJTOgt+3/dSe/MLXPMWPl2 79kgXxCnDF5ZKW1dH0L/lEg9OFx06n3g+u+YjgGfwVTnYE5aIkCM/BJekPtCJwt7TJFf UKK+hgv0O3YfuIdIFq4/zxCy+xAxUwKGRUNce7rYim6Bq3v5nE5e594ckrg9YD4zogQb 8pFVbMQwj1XN42ZhS9sIPolY4RYcrLfJBsZ5HNutOaZhToK4wA5Gj/BH3hoTn+nGoQcd g6Qg== 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=h62MLZglSk0AGZD9SfFQbGL1zDMVzymMNWcO9Y1i7ro=; b=JcBe8m7/XYSULPs0WNm6Q8yNVUEHs1pXKdpFoOlQzZ9WEkEyctS2AiRE4G1gWN5KCP G9iP5iAmVFNiAT46hfRMieMW3vsWJeIL+URdM2m9tNT/r5g8XKvv/pxmOr2KUATpQ0Xe aIqTRSj6IvwgeMZnKx/2q1U2wAewMZkq3r8ME62CfxzMYKore6sIt203CY8eP2xWY8YE l4f5PjheqPTBsfSL6MUK6/J6fHHQMlAqM8GeiQ2XRgdQjO6wkVbYOOzaKM19BkaqNOxI QSlSaGS0Dh5XjJCHlVl7mas/GkjGwS/5GKLW91ktao2h/RmFd+dtK6jpo3DhVIYHh9Vv NmVA== X-Gm-Message-State: AOAM532/OvZOfw931b63o0W05TXfzcjH8KPl24ZNl9o/QNBMqTlNfELd fehcTBnpj076Al+XLiXSe/JglQ== X-Received: by 2002:a5d:4ccc:: with SMTP id c12mr31780393wrt.137.1622018852634; Wed, 26 May 2021 01:47:32 -0700 (PDT) Received: from dell.default ([91.110.221.223]) by smtp.gmail.com with ESMTPSA id l18sm18911918wrt.97.2021.05.26.01.47.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 May 2021 01:47:32 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 02/34] drm/amd/pm/swsmu/smu13/aldebaran_ppt: Remove unused variable 'ret' Date: Wed, 26 May 2021 09:46:54 +0100 Message-Id: <20210526084726.552052-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210526084726.552052-1-lee.jones@linaro.org> References: <20210526084726.552052-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 , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= 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/swsmu/smu13/aldebaran_ppt.c: In function ‘aldebaran_is_dpm_running’: drivers/gpu/drm/amd/amdgpu/../pm/swsmu/smu13/aldebaran_ppt.c:1260:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 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/swsmu/smu13/aldebaran_ppt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.31.1 diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c index d6ce665baaf3b..d077e211017a9 100644 --- a/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c +++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/aldebaran_ppt.c @@ -1368,10 +1368,9 @@ static int aldebaran_usr_edit_dpm_table(struct smu_context *smu, enum PP_OD_DPM_ static bool aldebaran_is_dpm_running(struct smu_context *smu) { - int ret = 0; uint32_t feature_mask[2]; unsigned long feature_enabled; - ret = smu_cmn_get_enabled_mask(smu, feature_mask, 2); + smu_cmn_get_enabled_mask(smu, feature_mask, 2); feature_enabled = (unsigned long)((uint64_t)feature_mask[0] | ((uint64_t)feature_mask[1] << 32)); return !!(feature_enabled & SMC_DPM_FEATURE);