From patchwork Thu Nov 5 14:45:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320636 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp509716ilc; Thu, 5 Nov 2020 06:52:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPDIWwPV9KSR1sSd5iSiOyi79rtOaAWkRpK5P8rHqnqzdQjsI+/85eN0tEvM19ldiunXKX X-Received: by 2002:a63:b10:: with SMTP id 16mr2671927pgl.309.1604587963969; Thu, 05 Nov 2020 06:52:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604587963; cv=none; d=google.com; s=arc-20160816; b=s8nBbNiTLMEFq7oBjLc88iCY2brovyYpTeE1zD+gK/cukUpl0OvBjTFIKmiDXuBKcL 5ETtl+K8H/p7yiaY9Xj/RbaWflfHLNcxIAsN0Dajj8UxhUAyV3ZkdlVVFlrGPqepKHqP iz+6pr5RWORbHRYQZ0f2Ah+L//C9Hnoj3+dxYbAs/rJwyvL5Id/lyDB2TDHFG8M3rOgL AFetY4SPPxRYtzGSB6cydjriKo/dSY5Ui13UZJdoxFVogVAhzXY4X5YrglVgQWI4xybd gAdhK6s/A0ZNDBz25d483ZlWc8m31vRJi03TcKqAOJadvN+CAGDPHQe8Vws5u37/0udl JL1A== 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=ExeGD9qgYDieOGW2wh46sKWq4iemW65AbhYpSEczRXM=; b=hhtuTDpnfhGup6GWsvE+RSeRPEM4LsrUNJIxxM8MItcne/YOJBENbDYyN58RYtH/bv CWhP0fCVGNTf/VNcKwcCLE0/1piM5pr3n94Kz8IjQe1IzVuTV85RVFQaiDp3YpCN1dK3 7WiJHsvZpHEIgcYsN7fpfhwTR7rxCWlHjb/iCqKGRj3JcFeLgG74BK8F5kkrRIx53lky KqJ8FJHU3efTG9YNxQnh3GMjyJhIByam+8+dtnjNUd6n/r8UASRQV09upX9YCwfcTauo KLKDEXT9f+eTkk4MjtpBw31SqflAMp6yNWFmJuIuvZ6scsUhhr79VgvdhXHP1pacbD39 3gPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XSREkBYK; 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 y15si1761992pgi.182.2020.11.05.06.52.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 06:52:43 -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=XSREkBYK; 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 E11C76EDA3; Thu, 5 Nov 2020 14:52:39 +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 7BE276ED9E for ; Thu, 5 Nov 2020 14:52:34 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id a3so1936492wrx.13 for ; Thu, 05 Nov 2020 06:52:34 -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=rv3e4lR5n3wbFt5a45993iZf/YGmwbWZWnMbXebEIvs=; b=XSREkBYK380J4CWNoXmcHRvUSexcxURarBudmCsFRVoIQ5vYDbDJky11tMykMICSa5 4t9WSt6mx44I9x9YihMhfrnjm70iija84cbYr3L4NqZKBysrWKTcAV2f60BmrUPyFPBc uy2UBtjWg1mmBR2rV9UNTmvSNlis678WRkrwrShYsej7hOIa9wV1hL4KdbtQJtzxDpWt pdjB5XWNlS0fZTNFXn5zMylPY7TooJTMlFDSFAhcBEEuM3+ByEeXJGnioaHz511LVgxV vP5bJbK0TsnoToAaMHJdezPZ7VCMgyK37zQ060GU0rjX/IC+TOsbCJNFnwcMXfS16kho 26yw== 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=rv3e4lR5n3wbFt5a45993iZf/YGmwbWZWnMbXebEIvs=; b=ZBGscWX7u3zYfIpgVIVeV+FuVknCRtxLFVRxoA6lg4fx0r/3SdPZKoQbU8pCLUX+Tl Z04c2a53pBmPWq0NgpEdkRnuG4HHtepDK1R4DiHfn59KSRCfqiHjhCYgz7Bpn1oVH7QR kJDl0zjVFV6Idwowksq08aqGdvDq7KVkPZH3RojbmwnbNkJC1b1MM1gqFJV9Yx+hYkWY uLjGzTNwkmwD9oYtj1nugH45AhwDn4qjYBW85sRRw/pxwIG3AvwymVIEcfULB9+W3fTr Y1mORpBAoGNFT0nZRDkdMxQG15vjwDjg5h4GDYQuaOoAr3iVL400yDr32pIliuvrKcPP y0BA== X-Gm-Message-State: AOAM531L5xOmhuGvrMRYKGVI6U/Ty8OzQ22UDmNwWx6yN+GdjdFErYZQ mv1SmGrDmwZ7A/dYdorLr1nBLQ== X-Received: by 2002:adf:fac6:: with SMTP id a6mr3321445wrs.373.1604587953215; Thu, 05 Nov 2020 06:52:33 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id f5sm2631243wmh.16.2020.11.05.06.52.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 06:52:32 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 15/19] gpu: drm: radeon: radeon_drv: Remove unused variable 'ret' Date: Thu, 5 Nov 2020 14:45:13 +0000 Message-Id: <20201105144517.1826692-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201105144517.1826692-1-lee.jones@linaro.org> References: <20201105144517.1826692-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 , Gareth Hughes , =?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/radeon/radeon_drv.c: In function ‘radeon_pmops_runtime_suspend’: drivers/gpu/drm/radeon/radeon_drv.c:455: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: Gareth Hughes Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/radeon_drv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 65061c949aeea..f5f1cb700d873 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c @@ -452,7 +452,6 @@ static int radeon_pmops_runtime_suspend(struct device *dev) { struct pci_dev *pdev = to_pci_dev(dev); struct drm_device *drm_dev = pci_get_drvdata(pdev); - int ret; if (!radeon_is_px(drm_dev)) { pm_runtime_forbid(dev); @@ -462,7 +461,7 @@ static int radeon_pmops_runtime_suspend(struct device *dev) drm_dev->switch_power_state = DRM_SWITCH_POWER_CHANGING; drm_kms_helper_poll_disable(drm_dev); - ret = radeon_suspend_kms(drm_dev, false, false, false); + radeon_suspend_kms(drm_dev, false, false, false); pci_save_state(pdev); pci_disable_device(pdev); pci_ignore_hotplug(pdev);