Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1929856ybv; Fri, 14 Feb 2020 08:24:33 -0800 (PST) X-Google-Smtp-Source: APXvYqw1rJv+PuPnMavxDUn2erq5WCBZzvcWQWSheeayjEEUlmoZrUq2rarUvum7cHUDyo5NpESY X-Received: by 2002:a05:6808:5d0:: with SMTP id d16mr2411877oij.45.1581697473248; Fri, 14 Feb 2020 08:24:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581697473; cv=none; d=google.com; s=arc-20160816; b=umX4zHKHN1crLA4L3uvEV+EU1+kUBObPgcFh8I1cxXbqozHd18krpVOoQtCO3MsW/x Q+4pEkbRHTdD9WRlb5xyaml8+aJNMGCw8uQmxTvaUbFIZCGHqwe/YGiSItoecEM64y7+ CG+ezO/W90eqm2vACVnzeBwnokqWugxKsJMvdlocxHeb09K6vrYdFnMupQQva95aW9HO KqAvX9sWMb4t63hYQXu/05O/CEhEXxsKTWTq36eTTyYmY7uJ7lRs/gh4z3eOVcuoH7Km bhBTmDwsXD6km9xlGGhlcAEgZN6EV6Qb6Bm4F2Paus8MYUz5g/1CLxWTIeueovnFzWgM 59Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IS3wg7D38gfxscqBp8h0JZbHBeV/7PwGZ/b/4aCiB3Q=; b=EKpkpK4eYwiPmGIRbznF0g3W6y22Zi4gKudRlAUJwGChl2j/1psTgCF7UJup533BYB V/wUNphICi2hPaQzTN4JIyUaNqgh3JnWWabg33YMrc/7wfgxGYDoeskSjhZGhBQX15Ac jTM7fWemZUU7OiRov59pwGpJjybVxsT6pV347VPGeS69JQZORdtZM7OFz3fIZZno8Vj6 8OlNj1/wgz+GWeN0+F+JQKGxfma6mYjnL9WdtU03BFuYI6A8Q/mvTGw14h8ihqYgEohK 2NyhUt0DFyT9vMW4lzE8eHxO/8N4HOroGL0e+z5ceR93MODKiZXK9iGRgNhWpoZEgXL/ KI3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=G9hI1ilu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w26si3169733otl.213.2020.02.14.08.24.21; Fri, 14 Feb 2020 08:24:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=G9hI1ilu; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405726AbgBNQXu (ORCPT + 99 others); Fri, 14 Feb 2020 11:23:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:57132 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405378AbgBNQWG (ORCPT ); Fri, 14 Feb 2020 11:22:06 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0E667246D3; Fri, 14 Feb 2020 16:22:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697325; bh=P9jEKKyfNmkT4yHp4U4ESLCvkX7RR/kRv7QnsR0c6rM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G9hI1ilu6qcZaQbWPPrXmRDT/gLwpCQZKpSXTXVKbVJ24Gd456tS3EWEVlYW0uVJX fIavEH3+EkGwF3WkjMJ3PFnngwINwhXLKm/ZUuscnHC80wawMebOJfSKWZZXFHSCvN DSRE6RX8PKuCuHMzvIX0C5vHB9h7tZo2byqFf9To= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: yu kuai , Alex Deucher , Sasha Levin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.9 034/141] drm/amdgpu: remove set but not used variable 'dig' Date: Fri, 14 Feb 2020 11:19:34 -0500 Message-Id: <20200214162122.19794-34-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: yu kuai [ Upstream commit d1d09dc417826f5a983e0f4f212f227beeb65e29 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/atombios_dp.c: In function ‘amdgpu_atombios_dp_link_train’: drivers/gpu/drm/amd/amdgpu/atombios_dp.c:716:34: warning: variable ‘dig’ set but not used [-Wunused-but-set-variable] Fixes: d38ceaf99ed0 ("drm/amdgpu: add core driver (v4)") Signed-off-by: yu kuai Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/atombios_dp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_dp.c b/drivers/gpu/drm/amd/amdgpu/atombios_dp.c index d712dee892545..8abe9beab0343 100644 --- a/drivers/gpu/drm/amd/amdgpu/atombios_dp.c +++ b/drivers/gpu/drm/amd/amdgpu/atombios_dp.c @@ -710,7 +710,6 @@ void amdgpu_atombios_dp_link_train(struct drm_encoder *encoder, struct drm_device *dev = encoder->dev; struct amdgpu_device *adev = dev->dev_private; struct amdgpu_encoder *amdgpu_encoder = to_amdgpu_encoder(encoder); - struct amdgpu_encoder_atom_dig *dig; struct amdgpu_connector *amdgpu_connector; struct amdgpu_connector_atom_dig *dig_connector; struct amdgpu_atombios_dp_link_train_info dp_info; @@ -718,7 +717,6 @@ void amdgpu_atombios_dp_link_train(struct drm_encoder *encoder, if (!amdgpu_encoder->enc_priv) return; - dig = amdgpu_encoder->enc_priv; amdgpu_connector = to_amdgpu_connector(connector); if (!amdgpu_connector->con_priv) -- 2.20.1