chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clang: fix numerous little issues found with clang-analyzer
[elogind.git]
/
src
/
unit.c
diff --git
a/src/unit.c
b/src/unit.c
index 59fc93a9ba3d74487f8c3a144bc49d3b6b25e071..3c2e974163e504c2617c5f3096cfa259ec8a3b50 100644
(file)
--- a/
src/unit.c
+++ b/
src/unit.c
@@
-859,10
+859,10
@@
int unit_reload(Unit *u) {
return -EBADR;
state = unit_active_state(u);
return -EBADR;
state = unit_active_state(u);
- if (
unit_active_state(u)
== UNIT_RELOADING)
+ if (
state
== UNIT_RELOADING)
return -EALREADY;
return -EALREADY;
- if (
unit_active_state(u)
!= UNIT_ACTIVE)
+ if (
state
!= UNIT_ACTIVE)
return -ENOEXEC;
unit_add_to_dbus_queue(u);
return -ENOEXEC;
unit_add_to_dbus_queue(u);