bus: fix duplicate comparisons

Testing for y > x is the same as testing for x < y.
This commit is contained in:
Tero Roponen 2013-10-10 08:14:24 +03:00 committed by Lennart Poettering
parent d682b3a7e7
commit dfcd88f634

View file

@ -144,7 +144,7 @@ static int pending_prioq_compare(const void *a, const void *b) {
/* Stability for the rest */
if (x < y)
return -1;
if (y > x)
if (x > y)
return 1;
return 0;
@ -179,7 +179,7 @@ static int prepare_prioq_compare(const void *a, const void *b) {
/* Stability for the rest */
if (x < y)
return -1;
if (y > x)
if (x > y)
return 1;
return 0;
@ -212,7 +212,7 @@ static int time_prioq_compare(const void *a, const void *b) {
/* Stability for the rest */
if (x < y)
return -1;
if (y > x)
if (x > y)
return 1;
return 0;