mirror of
https://github.com/systemd/systemd.git
synced 2025-03-29 06:50:16 +03:00
core: Move 'r' variable declaration to start of unit_start()
This commit is contained in:
parent
6b64d74091
commit
5f37c1a955
@ -1851,12 +1851,13 @@ static bool unit_verify_deps(Unit *u) {
|
||||
int unit_start(Unit *u) {
|
||||
UnitActiveState state;
|
||||
Unit *following;
|
||||
int r;
|
||||
|
||||
assert(u);
|
||||
|
||||
/* Check start rate limiting early so that failure conditions don't cause us to enter a busy loop. */
|
||||
if (UNIT_VTABLE(u)->test_start_limit) {
|
||||
int r = UNIT_VTABLE(u)->test_start_limit(u);
|
||||
r = UNIT_VTABLE(u)->test_start_limit(u);
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user