summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-05-10 03:31:11 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-05-10 15:06:39 +0900
commit735f0645db13d18f1ea37f046343ae0c3ec36987 (patch)
tree0a3aa14055473c1f2e8a6df6c613de73ed3433a9 /src/core
parentfcd7e0b7edf57d8de1de35bcef26c22ecd62b256 (diff)
downloadsystemd-735f0645db13d18f1ea37f046343ae0c3ec36987.tar.gz
core: drop unused argument
Diffstat (limited to 'src/core')
-rw-r--r--src/core/transaction.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/transaction.c b/src/core/transaction.c
index 997839c553..625a873c32 100644
--- a/src/core/transaction.c
+++ b/src/core/transaction.c
@@ -308,13 +308,11 @@ static void transaction_drop_redundant(Transaction *tr) {
} while (again);
}
-_pure_ static bool unit_matters_to_anchor(Unit *u, Job *job) {
- assert(u);
+_pure_ static bool job_matters_to_anchor(Job *job) {
assert(job);
assert(!job->transaction_prev);
- /* Checks whether at least one of the jobs for this unit
- * matters to the anchor. */
+ /* Checks whether at least one of the jobs for this transaction matters to the anchor. */
LIST_FOREACH(transaction, j, job)
if (j->matters_to_anchor)
@@ -382,7 +380,7 @@ static int transaction_verify_order_one(Transaction *tr, Job *j, Job *from, unsi
if (strv_push_pair(&array, k->unit->id, (char*) job_type_to_string(k->type)) < 0)
log_oom();
- if (!delete && hashmap_get(tr->jobs, k->unit) && !unit_matters_to_anchor(k->unit, k))
+ if (!delete && hashmap_get(tr->jobs, k->unit) && !job_matters_to_anchor(k))
/* Ok, we can drop this one, so let's do so. */
delete = k;