Skip to contentSkip to conversation

drm/radeon/cik: remove set but not used variables

PATCH Applied Tian Tao 2 participants 2 messages Apr 13, 2021 – Apr 15, 2021

Subsystems (2)
lore
Share & tools
lore

Tian Tao

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/gpu/drm/radeon/cik.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/gpu/drm/radeon/cik.c +0 -4
index 8b7a4f7..42a8afa 100644
@@ -7948,8 +7948,6 @@ int cik_irq_process(struct radeon_device *rdev)
 			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 @@ int cik_irq_process(struct radeon_device *rdev)
 			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
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Applied
#1 lore raw
Quoted 5 lines · Tian Tao

The value of pipe_id and queue_id are not used under certain circumstances, so just delete.

Applied. Thanks!

Alex

Quoted 29 lines
---
 drivers/gpu/drm/radeon/cik.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/gpu/drm/radeon/cik.c +0 -5
index 8b7a4f7..42a8afa 100644
@@ -7948,8 +7948,6 @@ int cik_irq_process(struct radeon_device *rdev)
                        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 @@ int cik_irq_process(struct radeon_device *rdev)
                        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
--

2.7.4

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx