linux-4.14-rc1/arch/powerpc/perf/hv-24x7.c:541: bad condition ?

David Binderman dcb314 at hotmail.com
Tue Sep 19 06:42:29 AEST 2017


Hello there,

linux-4.14-rc1/arch/powerpc/perf/hv-24x7.c:543]: (warning) Identical condition 's1<s2', second condition is always false

Source code is

    if (s1 < s2)
        return 1;
    if (s2 > s1)
        return -1;

Suggest code rework.

Regards

David Binderman


More information about the Linuxppc-dev mailing list