Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5064448pxj; Wed, 26 May 2021 01:48:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz85tdxcj9PVneBbWnd3tDkdj8avz8U+zwydNMDPXuCkxXsRqEhKnapvxzDCj5TY277s5/3 X-Received: by 2002:a6b:580e:: with SMTP id m14mr308285iob.37.1622018918569; Wed, 26 May 2021 01:48:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622018918; cv=none; d=google.com; s=arc-20160816; b=SQuwnIe8jRJ8Dn6VA/CxqtfZJhvO718LfygplpwgiLnnTOZPeRpzoMZbag4DD+uYz8 k8k5RK6zxRY/eQKdk/Q9ReX3s9SuKgXWHsHXelRel+wcI/6fdInDUmbCtvbiQeS0b7b3 5uWZqfHPUHuSLAtaR9anNlIxVHLlorxnsB7mo+VcGiCkxf0qafcM0A+ZyjCoPETblxSE BRTxnd3Ka0IflMaXLgqPzyQ09+gzSSyHZhiuj823tD+QBI+OhftYnpvK5eD58YcGF/J2 Vxwup7VuNORbgzHqgw+CTlIiuEvuBEaeWgvydL1k0q5gzlYpNZI6YYhkoKU+AcuRZnxv CUqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=h62MLZglSk0AGZD9SfFQbGL1zDMVzymMNWcO9Y1i7ro=; b=WuFWI2yVVXAHBvEu7h6M236IUSzU2cHqitc799KzHWrFjgVvwiXa+1raJdBYPrvqEH H3vyI02SgBxjOFWUa2eVR3yvim/qyznuwN4LC7f0KV0yhSEYCQ+o9yUZnaHCMU64FPgj mhogfKWR24xte/DYjzRjRCdhdwkZyK79vJ/GouirudM/PoRAE8lROPs7B1YmZn3nDWQM l7/kuSubvORCM6myNo9cwNwHZKxmk6GLLwBFAmN03K56mNVEF2KY7KNDvoj3Xnp+UvY3 bZ7OWIlPYlhK3S6I7ky6sOdeOLjCAkY1fZAgeOjoLYzaAvGjQp5tC8QA1AoaarRpBHQq t74A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c+dra2tq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q15si21454090jaj.2.2021.05.26.01.48.19; Wed, 26 May 2021 01:48:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=c+dra2tq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233193AbhEZItI (ORCPT + 99 others); Wed, 26 May 2021 04:49:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233071AbhEZItF (ORCPT ); Wed, 26 May 2021 04:49:05 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C640C06138A for ; Wed, 26 May 2021 01:47:34 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id n4so222734wrw.3 for ; Wed, 26 May 2021 01:47:34 -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=P5CaEpTlTv522QiK2ID12nQTrzt8e9PaVh4zBT3utBlfeqeLvw4uwoJqL0NGLiuEfy 6ucqdTO7sHt8bQNANjgiV/timhpvFBt/Yr/YKSg6qmQ1O9rjp2UMV99CiSJfaZAtxsgb /Z0SFTJ/gHyJs7vyS1ZYZZLxUXN595g/+/u8tku0dHsTdcT/puHjFBxgMol/0mjdUYRB AG+pZw59DhFVqq30m/pXMJ0z0B1WY9coYpHM45BlosmKGcxLSZriIoY+a2YI47vLXAp3 l0IQMGcT6R4KWZi3l7DbEbosTydffkI7i4r7K3gkuT16Zr1R6U6yad76+Ljqp1KX+HPP wnhg== X-Gm-Message-State: AOAM531/k5iCOUkwjXEqe3GA9VyQBtBRfbAOXEaKZBgb+ATvh+fCkyWg eT0BdVvri/8Xz9VszTUCfww4EA== 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 Cc: linux-kernel@vger.kernel.org, Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) 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); -- 2.31.1