Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1948606ybv; Fri, 14 Feb 2020 08:43:05 -0800 (PST) X-Google-Smtp-Source: APXvYqw9x/vcsyMjwWEN4E8atdBT6wUKs/dkYT66WWxL1KEd3PieBCZTLUNMwC0KpTAnChOliQF/ X-Received: by 2002:aca:d507:: with SMTP id m7mr2405298oig.48.1581698585386; Fri, 14 Feb 2020 08:43:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698585; cv=none; d=google.com; s=arc-20160816; b=w6QZsJGehKzR9TrGxkL/ex6piw0rJ/HRT19r1TqLAWP9j5sMPvYj6XSYeIjNw5rQtN ak9E6fHNcWXjJd/t8EbN/Od+QRnVKgXGS3S2SAPifBQJA52pJMOuowf4i3T+3mGosZB7 5Fhksr0wHfSz899cfaF/I8TxsK3jd1+NujpX0apV2oFdH/aH1evQch+PkOpvOad5pjZC KOAt/Qu6ZHgheruuurdtr4/ATVClkolY/twk2GquiqQbErvHAJzlfsqpV0XuG4pGyMnt nLfd72WMjJ8I/Vh16+kJ4N9PZ3TPIfWNIlPmI2xAeny5pEuCjYnyem2WhSxmahZbBZ2S EudQ== 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=pqj6xVBGSDgcuYuE4h69Lpy1WkCrhRwTur4EKUbMagY=; b=cn4PBxsg0irbrhAVz4w0vkDDfckSWXRbskiBMWgcDoEwcCBz3Iqv3RV/Q2YykmEIJo +jGRbZp28pwt5C+Aev9j674Klcd4arGhEElUpIrGUf6yPCTj5HLdCwRRU7Z59gt0+wV8 dzTgyC6Kdy7UCs9Kai02UvwnVnSEP/At9OFJ9psCHxKDAjNkEtFI+Jh5Y1dcE402MKfV SOSaBFbNdqwCmDXQzva2L3LOlLVg+koaqoJMhFVdlK4zm328w1gxZVgCyKXQBn8dVRry TFU+pkR+t0VLICVlUNn+xn6RgWhcf9OkkUElwR9aHZJohkzg1/KGM1TbwGgOsfNwvPl0 rm8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DVYbYxeW; 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 s8si2721455oic.7.2020.02.14.08.42.53; Fri, 14 Feb 2020 08:43:05 -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=DVYbYxeW; 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 S2405144AbgBNQmP (ORCPT + 99 others); Fri, 14 Feb 2020 11:42:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:57720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393185AbgBNQWU (ORCPT ); Fri, 14 Feb 2020 11:22:20 -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 D897424746; Fri, 14 Feb 2020 16:22:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697339; bh=6dD2KXOc0Xmxs4S5JjvOxNo7mg3BfFEJegbzPuFt1bU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DVYbYxeWQ84FT4quiUApuIl98PAkRKKX/0s/1bF+mq97sNnI26Ahu6Jo7QFekuu9x C4N6nf0o0YuGQhKEKKW9yflQp1envMRWykddy9FHUSFGoDQ9ZU9/NRKsZLBwIw2JBZ ixawxHheFvBmKAEkftg6oWcEwlt+bh4daj9dpF4U= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: zhengbin , Hulk Robot , Alex Deucher , Sasha Levin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.9 045/141] drm/radeon: remove set but not used variable 'radeon_connector' Date: Fri, 14 Feb 2020 11:19:45 -0500 Message-Id: <20200214162122.19794-45-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 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: zhengbin [ Upstream commit 5952c48993375a9da2de39be30df475cf590b0ce ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/radeon/radeon_display.c: In function radeon_crtc_scaling_mode_fixup: drivers/gpu/drm/radeon/radeon_display.c:1685:27: warning: variable radeon_connector set but not used [-Wunused-but-set-variable] It is not used since commit 377bd8a98d7d ("drm/radeon: use a fetch function to get the edid") Reported-by: Hulk Robot Signed-off-by: zhengbin Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/radeon/radeon_display.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 8b6f8aa238063..59d62275a659d 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -1719,7 +1719,6 @@ bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc, struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc); struct radeon_encoder *radeon_encoder; struct drm_connector *connector; - struct radeon_connector *radeon_connector; bool first = true; u32 src_v = 1, dst_v = 1; u32 src_h = 1, dst_h = 1; @@ -1732,7 +1731,6 @@ bool radeon_crtc_scaling_mode_fixup(struct drm_crtc *crtc, continue; radeon_encoder = to_radeon_encoder(encoder); connector = radeon_get_connector_for_encoder(encoder); - radeon_connector = to_radeon_connector(connector); if (first) { /* set scaling */ -- 2.20.1