]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe/multi_queue: Remove redundant assignment in guc_exec_queue_run_job
authorNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Fri, 8 May 2026 19:44:28 +0000 (12:44 -0700)
committerNiranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Fri, 8 May 2026 19:54:04 +0000 (12:54 -0700)
The 'killed_or_banned_or_wedged = true' assignment is redundant
since the variable is never read after that point.

Assisted-by: GitHub Copilot:claude-sonnet-4.6
Signed-off-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260508194428.61819-5-niranjana.vishwanathapura@intel.com
drivers/gpu/drm/xe/xe_guc_submit.c

index b1222b42174c40ca3bd28f32c1c557164a486098..104e65913dffed4dedcbe6b5551b38b6cbe6f637 100644 (file)
@@ -1216,10 +1216,8 @@ guc_exec_queue_run_job(struct drm_sched_job *drm_job)
                if (xe_exec_queue_is_multi_queue_secondary(q)) {
                        struct xe_exec_queue *primary = xe_exec_queue_multi_queue_primary(q);
 
-                       if (exec_queue_killed_or_banned_or_wedged(primary)) {
-                               killed_or_banned_or_wedged = true;
+                       if (exec_queue_killed_or_banned_or_wedged(primary))
                                goto run_job_out;
-                       }
 
                        if (!exec_queue_registered(primary))
                                register_exec_queue(primary, GUC_CONTEXT_NORMAL);