From: Lennart Poettering Date: Fri, 22 Mar 2019 18:22:53 +0000 (+0100) Subject: dbus-unit: remove redundant check X-Git-Tag: v242-rc1~73 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ebfb1b572498f44f513c613cfc5a5eedd7f0cc3e;p=thirdparty%2Fsystemd.git dbus-unit: remove redundant check We checked this with an assert() a few lines up aleady, no need to check this again. --- diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index 0afa9e23c00..e1b4af10501 100644 --- 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);