drm/radeon/cik: remove set but not used variables
authorTian Tao <tiantao6@hisilicon.com>
Tue, 13 Apr 2021 03:26:19 +0000 (11:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Apr 2021 20:32:45 +0000 (16:32 -0400)
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>
drivers/gpu/drm/radeon/cik.c

index 8b7a4f7..42a8afa 100644 (file)
@@ -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