Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1948836ybv; Fri, 14 Feb 2020 08:43:20 -0800 (PST) X-Google-Smtp-Source: APXvYqySVIKSPD1KUUytJ/U3PkCnVVhCl+5gSD7birw0ePyUfnON8lFNtY3DjBzmwiQujloI4iZ/ X-Received: by 2002:a9d:7410:: with SMTP id n16mr3074175otk.23.1581698600868; Fri, 14 Feb 2020 08:43:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698600; cv=none; d=google.com; s=arc-20160816; b=Q2M7HlMt0+0z3zd9dznCoYK9bq2PApg/nZD59d9+nP0ZP+Ie3GuVhEMa4/gRRNrfSY 8+ihrazfRsHjSucyMdCc9pTq+gUEwYT0ZARE+uPPfepGU+7Y8hxF1zSDx9MZOPBxGpa5 YD/R04lDPVeqQ8+aDdWMt6pgi86Ou4wP4iDkNYd/IDGYlh0vBpEBQIzdxMS77xCt/DAw u68NFkHuWfFTDPUwXf9RRgmCrTvahFpnPnvtk4u63FvQhGbwOJAQFFHSuN4/VOpPG6MW txpsrXZj5jbeXbwz41h8bVI0BDnfaWUFni9/AFXwElijo1m1lEYYjRHr+KiYP2TNCV4s bgDg== 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=LttuvhpytMCCYNUpbBPZq9b+i48+q7jhEnUJjTElyIk=; b=FIS5aLIZrjMgy2z2fF/WC5qjyjing2F2KEqUCP/07BdQu/Bsfa6QcqG7RtkQMZEiI1 FPnrfZxuux5/o+7TzAvsC13zNdOrcl2H+nZJaj7ZXcbepSCMTtU59S5+mBojs3KgXHfi gFA3UejVyDGTlSwUPhclShllAz1gWqgaFqT6p+tVoYnHqvt93vwQ9Xx+h8mxikR9f/nY 9YYhGf0nW+INDYxc+p8OMT0a2md3zPffadfcoNiBh7qaAw/lsRVUFMTiz6kZBF3z7ZIH O7eBSxs2j+oeuUOAgcgPHlOhdlw1jB6AP3xds0s2FAtu2V+jEvvyz36Y8GEf34NPB7sS SiaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=F2f4Z9B6; 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 t10si3052410otp.310.2020.02.14.08.43.09; Fri, 14 Feb 2020 08:43:20 -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=F2f4Z9B6; 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 S2392044AbgBNQmc (ORCPT + 99 others); Fri, 14 Feb 2020 11:42:32 -0500 Received: from mail.kernel.org ([198.145.29.99]:57680 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390590AbgBNQWT (ORCPT ); Fri, 14 Feb 2020 11:22:19 -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 8579F246E2; Fri, 14 Feb 2020 16:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697338; bh=hT30lkfuuOULaUDHwt5XfZ/Cy1fkWF0LKp8VOh6k6m4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=F2f4Z9B6XWQ6tYV1dF3i67ELZBRaVmkHwdZ0AQ3iOjf/++GgJEwG7vIUOUaUqmtta Ae5O1G0C94yVt7Dssau2K2hP8bXccu9f85+h7GEdT4KbBS+IlVoXDcCl10ZWHyS8Xz M/AYrzpWdbLKKx67LU290bIOGK39q6D9j27Zm42w= 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 044/141] drm/radeon: remove set but not used variable 'dig_connector' Date: Fri, 14 Feb 2020 11:19:44 -0500 Message-Id: <20200214162122.19794-44-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 3f47f0301594c4f930a32bd7d8125cfdeb6b4b6e ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/radeon/atombios_dp.c: In function radeon_dp_get_panel_mode: drivers/gpu/drm/radeon/atombios_dp.c:415:36: warning: variable dig_connector set but not used [-Wunused-but-set-variable] It is not used since commit 379dfc25e257 ("drm/radeon/dp: switch to the common i2c over aux code") Reported-by: Hulk Robot Signed-off-by: zhengbin Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/radeon/atombios_dp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm/radeon/atombios_dp.c index fd7682bf335dc..b381fb17694b1 100644 --- a/drivers/gpu/drm/radeon/atombios_dp.c +++ b/drivers/gpu/drm/radeon/atombios_dp.c @@ -412,7 +412,6 @@ int radeon_dp_get_panel_mode(struct drm_encoder *encoder, struct drm_device *dev = encoder->dev; struct radeon_device *rdev = dev->dev_private; struct radeon_connector *radeon_connector = to_radeon_connector(connector); - struct radeon_connector_atom_dig *dig_connector; int panel_mode = DP_PANEL_MODE_EXTERNAL_DP_MODE; u16 dp_bridge = radeon_connector_encoder_get_dp_bridge_encoder_id(connector); u8 tmp; @@ -423,8 +422,6 @@ int radeon_dp_get_panel_mode(struct drm_encoder *encoder, if (!radeon_connector->con_priv) return panel_mode; - dig_connector = radeon_connector->con_priv; - if (dp_bridge != ENCODER_OBJECT_ID_NONE) { /* DP bridge chips */ if (drm_dp_dpcd_readb(&radeon_connector->ddc_bus->aux, -- 2.20.1