diff --git a/src/basic/parse-util.c b/src/basic/parse-util.c index b79c885dfd2..70062eba2aa 100644 --- a/src/basic/parse-util.c +++ b/src/basic/parse-util.c @@ -2,7 +2,6 @@ #include #include -#include #include #include #include @@ -731,7 +730,7 @@ int parse_oom_score_adjust(const char *s, int *ret) { if (r < 0) return r; - if (v < OOM_SCORE_ADJ_MIN || v > OOM_SCORE_ADJ_MAX) + if (!oom_score_adjust_is_valid(v)) return -ERANGE; *ret = v;