diff mbox series

runqueue: fix bad check in process_possible_migrations

Message ID 20260824155116.1209591-1-chris.laplante@agilent.com
State New
Headers show
Series runqueue: fix bad check in process_possible_migrations | expand

Commit Message

chris.laplante@agilent.com Aug. 24, 2026, 3:51 p.m. UTC
From: Chris Laplante <chris.laplante@agilent.com>

This was probably a copy-paste error from above. Detected by PyCharm's
code analysis (Local variable p might be referenced before assignment).

Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
---
 lib/bb/runqueue.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py
index a4689e134..ca0fd2945 100644
--- a/lib/bb/runqueue.py
+++ b/lib/bb/runqueue.py
@@ -2610,7 +2610,7 @@  class RunQueueExecute:
             next = set()
             ready = {}
             for tid in current:
-                if self.rqdata.runtaskentries[p].depends and not self.rqdata.runtaskentries[tid].depends.isdisjoint(total):
+                if self.rqdata.runtaskentries[tid].depends and not self.rqdata.runtaskentries[tid].depends.isdisjoint(total):
                     continue
                 # get_taskhash for a given tid *must* be called before get_unihash* below
                 ready[tid] = bb.parse.siggen.get_taskhash(tid, self.rqdata.runtaskentries[tid].depends, self.rqdata.dataCaches)