diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-08 03:01:05 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-08 03:01:05 +0200 |
commit | a90ebccc072efa17313fe68c737b3507247c37dd (patch) | |
tree | f469f3392e84991816b949d27d07a2f744379d16 /target.c | |
parent | 37d88da701d75a3893b262580dc59042147a9b89 (diff) |
unit: shortcut unit_notify() early, if possible
Diffstat (limited to 'target.c')
-rw-r--r-- | target.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -52,6 +52,9 @@ static void target_set_state(Target *t, TargetState state) { TargetState old_state; assert(t); + if (state == t->state) + return; + old_state = t->state; t->state = state; |