Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1944613ybv; Fri, 14 Feb 2020 08:38:57 -0800 (PST) X-Google-Smtp-Source: APXvYqyas3Yxe+2d7+4g1uX7ve7K0FyYQrIHj4sXu6cXmALw7sXdK+AXvrvctS5Dr5bSDPh4Ybsn X-Received: by 2002:a05:6808:9a4:: with SMTP id e4mr2492142oig.127.1581698337491; Fri, 14 Feb 2020 08:38:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698337; cv=none; d=google.com; s=arc-20160816; b=SfvctwBIG/4nj7dMdyyTZJaNUz7Na0Oh7Q8EAZF9GIzTTsv97mKeIecTFHFfcv1//m aOWq21Ka08UBqBC684G7z7khgOuBN6zkBFRvwl/3Pugn2YS9k4VUSsrr5gTEHmDYkxfC K4fToYtBc4giflj8wiNlI0fkV74UiBTwusIOyPVkJet1Y2FTZy/wtf42AnrMVzKFQ04J /TLaVGubkSuC/hPiL5Ge/WrC5pcB6RktAsWimCD28GEZJWS+QR53Fp2+B8jLHJ1DmT+s SsBC3p4Xf08HJLwScSMk/JysNGjqcNQqqm6MgiLyKTXydNF52K3wogme+w2JeoEgIXJJ aRBA== 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=CW6TRSmjbCwF95a8kkfPkxEHW0r2avnO3kjrd1sD38E=; b=xknh/FAabpmM/NiHPpEBsUYGFpE0omJaqH5zdDnGnrPwcsxWHK3Cf9c4iYb/Qyn+sm 73MBy3xB4eXZEQkSRKIteOk8045sf+G3qBQzrwCmq9r78Ydfw57QPAlaGfH12DekANjp aOjyO+DxK6wqxXKv3mlQTO12F4anbn+UM6GYQ6bM+vFw1/Fk+YQlMB5etHvixGKUd5VG qv/VDQG2g8kk7JQlowhHrtxBUfDeR5gnVhawl/ZErVqmq1hXoRapB6PSymSfya2l/TjC +NwY96XgmhFQ/LgMBBmrq51K6giFCgKQoHVDQsHD6vT/+D/xBPbH5+VFPnPOVEq6h4SF 9dDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PepKEXcF; 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 f194si737951oig.243.2020.02.14.08.38.44; Fri, 14 Feb 2020 08:38:57 -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=PepKEXcF; 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 S2405766AbgBNQX6 (ORCPT + 99 others); Fri, 14 Feb 2020 11:23:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:57256 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387788AbgBNQWK (ORCPT ); Fri, 14 Feb 2020 11:22:10 -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 ACA83246DF; Fri, 14 Feb 2020 16:22:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697329; bh=jn4K9rDlecWTJSRHUz03JEu4YRkIIjvf91FBDrRDW14=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PepKEXcFte97Cc2hl/ii68rXDcQtRKm9SBUzaFpxSdkRIXYupe0weqkSFF3++H7oq fNTDn5iv9Gb7jJKyAGwSS9nPmQGwriGL9a3C01xDmHXQp7G56vUj8FCcGY6kidpM/Q NqT+RiZtEe4ofHR1WVwteVzSS7N7a46gBSpQ378Q= 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 037/141] drm/amdgpu: remove set but not used variable 'amdgpu_connector' Date: Fri, 14 Feb 2020 11:19:37 -0500 Message-Id: <20200214162122.19794-37-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 4f2922d12d6c63d0f4aa4e859ad95aee6d0d4ea0 ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/amdgpu_display.c: In function ‘amdgpu_display_crtc_scaling_mode_fixup’: drivers/gpu/drm/amd/amdgpu/amdgpu_display.c:693:27: warning: variable ‘amdgpu_connector’ 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/amdgpu_display.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c index 15a2d8f3725d5..f29f025202d03 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c @@ -666,7 +666,6 @@ bool amdgpu_crtc_scaling_mode_fixup(struct drm_crtc *crtc, struct amdgpu_crtc *amdgpu_crtc = to_amdgpu_crtc(crtc); struct amdgpu_encoder *amdgpu_encoder; struct drm_connector *connector; - struct amdgpu_connector *amdgpu_connector; u32 src_v = 1, dst_v = 1; u32 src_h = 1, dst_h = 1; @@ -678,7 +677,6 @@ bool amdgpu_crtc_scaling_mode_fixup(struct drm_crtc *crtc, continue; amdgpu_encoder = to_amdgpu_encoder(encoder); connector = amdgpu_get_connector_for_encoder(encoder); - amdgpu_connector = to_amdgpu_connector(connector); /* set scaling */ if (amdgpu_encoder->rmx_type == RMX_OFF) -- 2.20.1