Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4e0a834 authored by Chia-I Wu's avatar Chia-I Wu
Browse files

surfaceflinger: fix sorting in LayerProtoParser

"return (lz > rz) ? 1 : -1;" is equivalent to "return true;" here.

Test: dumpsys
Change-Id: I13b2784c500684eaf68a8a9706e3e864d43d95f2
parent 4d70c4ed
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ bool sortLayers(LayerProtoParser::Layer* lhs, const LayerProtoParser::Layer* rhs
    int32_t lz = lhs->z;
    int32_t rz = rhs->z;
    if (lz != rz) {
        return (lz > rz) ? 1 : -1;
        return lz < rz;
    }

    return lhs->id < rhs->id;