projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e59ba56
)
dbus-unit: remove redundant check
author
Lennart Poettering
<lennart@poettering.net>
Fri, 22 Mar 2019 18:22:53 +0000
(19:22 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 25 Mar 2019 12:48:53 +0000
(13:48 +0100)
We checked this with an assert() a few lines up aleady, no need to check
this again.
src/core/dbus-unit.c
patch
|
blob
|
history
diff --git
a/src/core/dbus-unit.c
b/src/core/dbus-unit.c
index 0afa9e23c00973c201705c9d4bf75abb3afba338..e1b4af10501e55d336b4e1442f8c6bb42c7c043b 100644
(file)
--- a/
src/core/dbus-unit.c
+++ b/
src/core/dbus-unit.c
@@
-358,7
+358,7
@@
int bus_unit_method_start_generic(
u,
verb,
CAP_SYS_ADMIN,
-
job_type < _JOB_TYPE_MAX ? polkit_message_for_job[job_type] : NULL
,
+
polkit_message_for_job[job_type]
,
true,
message,
error);