mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
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:
parent
7a336645fb
commit
b71d0224db
1 changed files with 0 additions and 3 deletions
|
|
@ -626,9 +626,6 @@ static int set_nice(struct impl *impl, int nice_level, bool warn)
|
||||||
if (warn)
|
if (warn)
|
||||||
pw_log_warn("could not set nice-level to %d: %s",
|
pw_log_warn("could not set nice-level to %d: %s",
|
||||||
nice_level, spa_strerror(res));
|
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 {
|
} else {
|
||||||
pw_log_info("main thread nice level set to %d",
|
pw_log_info("main thread nice level set to %d",
|
||||||
nice_level);
|
nice_level);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue