pipewire: module-rt: remove check for impossible condition

Neither `sched_set_nice()` nor `pw_rtkit_make_high_priority()`
(should) ever return a positive number, so that case is not
possible; remove it.
This commit is contained in:
Barnabás Pőcze 2025-02-28 23:30:53 +01:00 committed by Wim Taymans
parent 7a336645fb
commit b71d0224db

View file

@ -626,9 +626,6 @@ static int set_nice(struct impl *impl, int nice_level, bool warn)
if (warn)
pw_log_warn("could not set nice-level to %d: %s",
nice_level, spa_strerror(res));
} else if (res > 0) {
pw_log_info("main thread setting nice level to %d: %s",
nice_level, spa_strerror(-res));
} else {
pw_log_info("main thread nice level set to %d",
nice_level);