mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
manager: turn a superfluous check into assert
The crash that the check prevented has been fixed by commit 9e9e2b7.
This commit is contained in:
parent
6b19ad24d3
commit
e970a72e94
@ -269,8 +269,9 @@ static void manager_print_jobs_in_progress(Manager *m) {
|
||||
if (j->state == JOB_RUNNING && counter++ == print_nr)
|
||||
break;
|
||||
|
||||
if (!j)
|
||||
return;
|
||||
/* m->n_running_jobs must be consistent with the contents of m->jobs,
|
||||
* so the above loop must have succeeded in finding j. */
|
||||
assert(counter == print_nr + 1);
|
||||
|
||||
cylon_pos = m->jobs_in_progress_iteration % 14;
|
||||
if (cylon_pos >= 8)
|
||||
|
Loading…
x
Reference in New Issue
Block a user