[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200918034214.2534751-1-yangyingliang@huawei.com>
Date: Fri, 18 Sep 2020 11:42:14 +0800
From: Yang Yingliang <yangyingliang@...wei.com>
To: <amd-gfx@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>
CC: <alexander.deucher@....com>, <yangyingliang@...wei.com>
Subject: [PATCH -next] drm/amd/display: remove unused variable in amdgpu_dm.c
Fix the compile warning:
drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:892:26: warning: variable ‘stream’ set but not used [-Wunused-but-set-variable]
struct dc_stream_state *stream;
^~~~~~
Reported-by: Hulk Robot <hulkci@...wei.com>
Signed-off-by: Yang Yingliang <yangyingliang@...wei.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index bb1bc7f5d149..7d9e8c311879 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -889,7 +889,6 @@ static void amdgpu_check_debugfs_connector_property_change(struct amdgpu_device
struct drm_connector_state *conn_state;
struct dm_crtc_state *acrtc_state;
struct drm_crtc_state *crtc_state;
- struct dc_stream_state *stream;
struct drm_device *dev = adev_to_drm(adev);
list_for_each_entry(connector, &dev->mode_config.connector_list, head) {
@@ -906,8 +905,6 @@ static void amdgpu_check_debugfs_connector_property_change(struct amdgpu_device
if (!(acrtc_state && acrtc_state->stream))
continue;
- stream = acrtc_state->stream;
-
if (amdgpu_dm_connector->dsc_settings.dsc_force_enable ||
amdgpu_dm_connector->dsc_settings.dsc_num_slices_v ||
amdgpu_dm_connector->dsc_settings.dsc_num_slices_h ||
--
2.25.1
Powered by blists - more mailing lists