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
gugelfrei
Yi Kong 6 years ago
parent 853996e7b2
commit e5b052ea12

@ -1029,7 +1029,7 @@ bool ToneGenerator::startTone(tone_type toneType, int durationMs) {
bool lResult = false;
status_t lStatus;
if ((toneType < 0) || (toneType >= NUM_TONES))
if (toneType >= NUM_TONES)
return lResult;
toneType = getToneForRegion(toneType);

Loading…
Cancel
Save