summaryrefslogtreecommitdiff
path: root/src/amdgpu_drm_queue.c
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2018-04-18 11:18:59 +0200
committerMichel Dänzer <michel@daenzer.net>2018-04-20 17:13:08 +0200
commit8fcc3a9b43d3907052a83a96e5a2423afab5ad3f (patch)
tree67d73585d13c256abf02d4d9d224c165a0a25e45 /src/amdgpu_drm_queue.c
parent720a61000aeb139005bd8125908cec66a6e69554 (diff)
Ignore AMDGPU_DRM_QUEUE_ERROR (0) in amdgpu_drm_abort_entry
This allows a following change to be slightly simpler.
Diffstat (limited to 'src/amdgpu_drm_queue.c')
-rw-r--r--src/amdgpu_drm_queue.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amdgpu_drm_queue.c b/src/amdgpu_drm_queue.c
index 2aa21e0..d1456ca 100644
--- a/src/amdgpu_drm_queue.c
+++ b/src/amdgpu_drm_queue.c
@@ -150,6 +150,9 @@ amdgpu_drm_abort_entry(uintptr_t seq)
{
struct amdgpu_drm_queue_entry *e, *tmp;
+ if (seq == AMDGPU_DRM_QUEUE_ERROR)
+ return;
+
xorg_list_for_each_entry_safe(e, tmp, &amdgpu_drm_queue, list) {
if (e->seq == seq) {
amdgpu_drm_abort_one(e);