From ebfb1b572498f44f513c613cfc5a5eedd7f0cc3e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 22 Mar 2019 19:22:53 +0100 Subject: [PATCH] dbus-unit: remove redundant check We checked this with an assert() a few lines up aleady, no need to check this again. --- src/core/dbus-unit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c index 0afa9e2..e1b4af1 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); -- 2.7.4