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

Commit e5b052ea authored by Yi Kong's avatar Yi Kong
Browse files

Remove unreachable condition

Comparison of unsigned enum expression < 0 is always false. Fixes
tautological-unsigned-enum-zero-compare warning.

Bug: 72331526
Test: m
Change-Id: I9b4aa103ed64d3d08d1e36abbd8f3bf960cdf5d4
parent 853996e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1029,7 +1029,7 @@ bool ToneGenerator::startTone(tone_type toneType, int durationMs) {
    bool lResult = false;
    bool lResult = false;
    status_t lStatus;
    status_t lStatus;


    if ((toneType < 0) || (toneType >= NUM_TONES))
    if (toneType >= NUM_TONES)
        return lResult;
        return lResult;


    toneType = getToneForRegion(toneType);
    toneType = getToneForRegion(toneType);