]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
dbus-unit: remove redundant check
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Mar 2019 18:22:53 +0000 (19:22 +0100)
committerZbigniew 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

index 0afa9e23c00973c201705c9d4bf75abb3afba338..e1b4af10501e55d336b4e1442f8c6bb42c7c043b 100644 (file)
@@ -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);