Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1945087ybv; Fri, 14 Feb 2020 08:39:24 -0800 (PST) X-Google-Smtp-Source: APXvYqxQzNz1y3dV/C6LQc9oGZULrewfs4211gGCs8GbzggXMxweHwbQmWhWaB/ei8P3PZXgH5ID X-Received: by 2002:a05:6830:2111:: with SMTP id i17mr2860135otc.24.1581698364853; Fri, 14 Feb 2020 08:39:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698364; cv=none; d=google.com; s=arc-20160816; b=GY+rZd4/PT1M5PbcaoYMZzpRNxGTxY09J9IevRp8DZ1OXyy7/VgU+mbd7pbgoxfTE4 VSqs1o7nGgvTrhZeVzDL52WwGGA9hxYw67jv1hE6sdbhDzZfRpQF4hybb7fsGMTsR2si JnH5+dcTi8vF+/6Phg42NiU9XYTQH3hRlKDQ6IWZb33Ln6CSl4iLdcL370sOUxwrGiT6 IBxU4c5yVqDfSn2Qck4/XvYtWcKmtNBodf+hzcHbUqjqshfNRuZxeanCj7FZDtV6hcbq OWZo5U7La6F9u4j8n5IaCVbjbX9AWL7qRDCsrZASDGvs/G2WwS2WrrL8Juy7v77aDNiO Zg5Q== 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=xFSBkoJ3kkqNZrQAsT8RtF0wDwFMcAIIgRXl4G8OnMM=; b=S2ommWJoo8diTk8KhWbe5wnYdRrH99ChhCKT99WMZREKuKL8BfHvMxQfcV6rwXw8AM I/2p1sPgfPxmF7hiA++ZVeWbrKvfw0jXh1B0nUJG4TyWfQgGgnbrKvhCft3AbJIXe41/ DZB93WqpqpuqDF0iANKY6HcRG8S2uoFbsHLXdtGEIg1YlR4sLuusQn88XUHNddYDtwoS h3EswoiC9wqTAWCZQ1kaEdTDc7tRT53M1NQXmaY7583WKaCHYAb8GJ5aery0yH2wvHqg sJVq4oa3TKxkqriFmw5fCbDhyOvhKyYgPxye9hdjkkVSRI5j9q/v1TQV2zwoZSthJjN9 phiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hJ3uKaXV; 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 h26si2035230otm.303.2020.02.14.08.39.12; Fri, 14 Feb 2020 08:39:24 -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=hJ3uKaXV; 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 S2405746AbgBNQXy (ORCPT + 99 others); Fri, 14 Feb 2020 11:23:54 -0500 Received: from mail.kernel.org ([198.145.29.99]:57070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405202AbgBNQWF (ORCPT ); Fri, 14 Feb 2020 11:22:05 -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 C6820246CE; Fri, 14 Feb 2020 16:22:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697324; bh=0kT5xc+IVb1pEroXTrduFksV6+JEEfPcC8u/t3uHsk0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hJ3uKaXVQP4peat/sz4xTW5SpzlaltWQRp1ox3VzgGHxkrKrVSziRK3e8ufCjqPvC PIGIUTAi9r90O/pMdCZF6lItqOGMzm0hhtdsreI/2rqng3DrkT3kWuCbT6y89ByZ9J 7mfwzor6PvQiJqhdQ/i/kXNcvWYWjI+wcIC6AFM4= 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 033/141] drm/amdgpu: remove set but not used variable 'dig_connector' Date: Fri, 14 Feb 2020 11:19:33 -0500 Message-Id: <20200214162122.19794-33-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 5bea7fedb7fe4d5e6d3ba9f385dd3619fb004ce7 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/atombios_dp.c: In function ‘amdgpu_atombios_dp_get_panel_mode’: drivers/gpu/drm/amd/amdgpu/atombios_dp.c:364:36: warning: variable ‘dig_connector’ set but not used [-Wunused-but-set-variable] It is never used, so can be removed. 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 | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_dp.c b/drivers/gpu/drm/amd/amdgpu/atombios_dp.c index f81068ba4cc67..d712dee892545 100644 --- a/drivers/gpu/drm/amd/amdgpu/atombios_dp.c +++ b/drivers/gpu/drm/amd/amdgpu/atombios_dp.c @@ -361,7 +361,6 @@ int amdgpu_atombios_dp_get_panel_mode(struct drm_encoder *encoder, struct drm_connector *connector) { struct amdgpu_connector *amdgpu_connector = to_amdgpu_connector(connector); - struct amdgpu_connector_atom_dig *dig_connector; int panel_mode = DP_PANEL_MODE_EXTERNAL_DP_MODE; u16 dp_bridge = amdgpu_connector_encoder_get_dp_bridge_encoder_id(connector); u8 tmp; @@ -369,8 +368,6 @@ int amdgpu_atombios_dp_get_panel_mode(struct drm_encoder *encoder, if (!amdgpu_connector->con_priv) return panel_mode; - dig_connector = amdgpu_connector->con_priv; - if (dp_bridge != ENCODER_OBJECT_ID_NONE) { /* DP bridge chips */ if (drm_dp_dpcd_readb(&amdgpu_connector->ddc_bus->aux, -- 2.20.1