From ca9da0ed5a4a860c6483fd586a9004fd47908eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanis=C5=82aw=20Pitucha?= Date: Fri, 18 Feb 2022 22:35:05 +1100 Subject: [PATCH] Fix the comparison parens The parens were unnecessary and didn't seem to match the intent for the result. --- pipewire-jack/src/pipewire-jack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipewire-jack/src/pipewire-jack.c b/pipewire-jack/src/pipewire-jack.c index 45e5e42aa..986eedb94 100644 --- a/pipewire-jack/src/pipewire-jack.c +++ b/pipewire-jack/src/pipewire-jack.c @@ -5328,7 +5328,7 @@ static int port_compare_func(const void *v1, const void *v2) res = is_def2 - is_def1; else if ((*o1)->port.priority != (*o2)->port.priority) res = (*o2)->port.priority - (*o1)->port.priority; - else if ((res = strcmp((*o1)->port.alias1, (*o2)->port.alias1) == 0)) { + else if ((res = strcmp((*o1)->port.alias1, (*o2)->port.alias1)) == 0) { res = (*o1)->port.node_id - (*o2)->port.node_id; if (res == 0) res = (*o1)->port.system_id - (*o2)->port.system_id;