diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-10-05 23:43:08 +0900 |
---|---|---|
committer | Sven Eden <sven.eden@prydeworx.com> | 2018-10-29 10:18:21 +0100 |
commit | dd3dccc1bb10ffd6907c3c203a5d63d6cd63c63f (patch) | |
tree | d70bfd0e06e6df3970c58f844b24aa036ba3a2fe | |
parent | 48a664bf275a9d5c411a26b2d781470245647fc0 (diff) |
core/dbus-execute: fix parsing CPUScheduling* and Nice for transient services
Fixes #10290.
(cherry picked from commit c250bf671b89768ed27984defe9b5af262618e42)
-rw-r--r-- | src/basic/process-util.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/basic/process-util.h b/src/basic/process-util.h index f73055218..e7e197517 100644 --- a/src/basic/process-util.h +++ b/src/basic/process-util.h @@ -150,12 +150,6 @@ static inline bool pid_is_valid(pid_t p) { return p > 0; } -static inline int sched_policy_to_string_alloc_with_check(int n, char **s) { - if (!sched_policy_is_valid(n)) - return -EINVAL; - - return sched_policy_to_string_alloc(n, s); -} #if 0 /// UNNEEDED by elogind int ioprio_parse_priority(const char *s, int *ret); |