summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTian Tao <tiantao6@hisilicon.com>2021-04-13 11:26:19 +0800
committerAlex Deucher <alexander.deucher@amd.com>2021-04-15 16:32:45 -0400
commitf689f2be0c7d8885ca7f2d18a6b3adc9d6a41912 (patch)
tree06e5173b12cd9baa28c3b948b6768296ae8ea2d4
parent951796f2f492430c838d8cd6619a04e0978a653c (diff)
downloadlinux-f689f2be0c7d8885ca7f2d18a6b3adc9d6a41912.tar.gz
linux-f689f2be0c7d8885ca7f2d18a6b3adc9d6a41912.tar.bz2
linux-f689f2be0c7d8885ca7f2d18a6b3adc9d6a41912.zip
drm/radeon/cik: remove set but not used variables
The value of pipe_id and queue_id are not used under certain circumstances, so just delete. Signed-off-by: Tian Tao <tiantao6@hisilicon.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/radeon/cik.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c
index 8b7a4f7b7576..42a8afa839cb 100644
--- a/drivers/gpu/drm/radeon/cik.c
+++ b/drivers/gpu/drm/radeon/cik.c
@@ -7948,8 +7948,6 @@ restart_ih:
DRM_ERROR("Illegal register access in command stream\n");
/* XXX check the bitfield order! */
me_id = (ring_id & 0x60) >> 5;
- pipe_id = (ring_id & 0x18) >> 3;
- queue_id = (ring_id & 0x7) >> 0;
switch (me_id) {
case 0:
/* This results in a full GPU reset, but all we need to do is soft
@@ -7971,8 +7969,6 @@ restart_ih:
DRM_ERROR("Illegal instruction in command stream\n");
/* XXX check the bitfield order! */
me_id = (ring_id & 0x60) >> 5;
- pipe_id = (ring_id & 0x18) >> 3;
- queue_id = (ring_id & 0x7) >> 0;
switch (me_id) {
case 0:
/* This results in a full GPU reset, but all we need to do is soft