bus: fix duplicate comparisons

Testing for y > x is the same as testing for x < y.