From: Lennart Poettering Date: Tue, 13 Nov 2018 18:34:30 +0000 (+0100) Subject: job: minor coding style tweaks X-Git-Tag: v240~301^2~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ea2c0e4526dbb520d55936e781f4493357a9866e;p=thirdparty%2Fsystemd.git job: minor coding style tweaks --- diff --git a/src/core/job.c b/src/core/job.c index 07846ca202a..372d5360d53 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -583,7 +583,9 @@ int job_run_and_invalidate(Job *j) { switch (j->type) { case JOB_VERIFY_ACTIVE: { - UnitActiveState t = unit_active_state(j->unit); + UnitActiveState t; + + t = unit_active_state(j->unit); if (UNIT_IS_ACTIVE_OR_RELOADING(t)) r = -EALREADY; else if (t == UNIT_ACTIVATING) @@ -598,8 +600,7 @@ int job_run_and_invalidate(Job *j) { case JOB_RESTART: r = job_perform_on_unit(&j); - /* If the unit type does not support starting/stopping, - * then simply wait. */ + /* If the unit type does not support starting/stopping, then simply wait. */ if (r == -EBADR) r = 0; break;