Re: powerpc/perf/hv-24x7: Fix incorrect comparison in memord

2017-10-24 Thread Michael Ellerman
On Mon, 2017-10-09 at 10:52:44 UTC, Michael Ellerman wrote: > In the hv-24x7 code there is a function memord() which tries to > implement a sort function return -1, 0, 1. However one of the > conditions is incorrect, such that it can never be true, because we > will have already returned. > > I do

[PATCH] powerpc/perf/hv-24x7: Fix incorrect comparison in memord

2017-10-09 Thread Michael Ellerman
In the hv-24x7 code there is a function memord() which tries to implement a sort function return -1, 0, 1. However one of the conditions is incorrect, such that it can never be true, because we will have already returned. I don't believe there is a bug in practice though, because the comparisons a