summaryrefslogtreecommitdiff
path: root/src/core/job.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-10-10 14:50:35 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-10-11 16:59:00 +0200
commit0b6a47957bd4f1dd4801ee6d7eb337e09dcf7099 (patch)
tree9736f4929b2acd54a437da11f3079b8cb1f187ce /src/core/job.c
parentb413d4fd3e8102a6e3785cd7e8e8a679a4473445 (diff)
downloadsystemd-0b6a47957bd4f1dd4801ee6d7eb337e09dcf7099.tar.gz
tree-wide: drop () around the first argument of a ternary op
https://github.com/systemd/systemd/pull/24933#discussion_r991242789
Diffstat (limited to 'src/core/job.c')
-rw-r--r--src/core/job.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/job.c b/src/core/job.c
index 419fe54bf0..032554a0ac 100644
--- a/src/core/job.c
+++ b/src/core/job.c
@@ -142,7 +142,7 @@ void job_uninstall(Job *j) {
job_set_state(j, JOB_WAITING);
- pj = (j->type == JOB_NOP) ? &j->unit->nop_job : &j->unit->job;
+ pj = j->type == JOB_NOP ? &j->unit->nop_job : &j->unit->job;
assert(*pj == j);
/* Detach from next 'bigger' objects */
@@ -203,7 +203,7 @@ Job* job_install(Job *j) {
assert(j->type < _JOB_TYPE_MAX_IN_TRANSACTION);
assert(j->state == JOB_WAITING);
- pj = (j->type == JOB_NOP) ? &j->unit->nop_job : &j->unit->job;
+ pj = j->type == JOB_NOP ? &j->unit->nop_job : &j->unit->job;
uj = *pj;
if (uj) {
@@ -264,7 +264,7 @@ int job_install_deserialized(Job *j) {
"Invalid job type %s in deserialization.",
strna(job_type_to_string(j->type)));
- pj = (j->type == JOB_NOP) ? &j->unit->nop_job : &j->unit->job;
+ pj = j->type == JOB_NOP ? &j->unit->nop_job : &j->unit->job;
if (*pj)
return log_unit_debug_errno(j->unit, SYNTHETIC_ERRNO(EEXIST),
"Unit already has a job installed. Not installing deserialized job.");