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

Commit aa11d6a8 authored by Henri Chataing's avatar Henri Chataing
Browse files

[ALPS07916456] Fix coverity error

This issue is detected by
	Checker: NO_EFFECT
	Type: Enum compared against 0
	Checker Wiki: https://swwiki.mediatek.inc/display/SCA/NO_EFFECT
Defect is in:
	File: vendor/mediatek/proprietary/packages/modules/Bluetooth/system/device/src/esco_parameters.cc
	Fucntion and lines:
			esco_parameters_for_codec(esco_codec_t, bool):215

Bug: 328847127
Test: m com.android.btservices
Flag: EXEMPT, no logical change
Change-Id: I53325e00a1c6e77b50ee6902139a3ecd728be5ce
parent 651d68ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -328,7 +328,7 @@ static const enh_esco_params_t default_esco_parameters[ESCO_NUM_CODECS] = {
     .retransmission_effort = ESCO_RETRANSMISSION_QUALITY}};

enh_esco_params_t esco_parameters_for_codec(esco_codec_t codec, bool offload) {
  CHECK(codec >= 0) << "codec index " << (int)codec << "< 0";
  CHECK((int)codec >= 0) << "codec index " << (int)codec << "< 0";
  CHECK(codec < ESCO_NUM_CODECS)
      << "codec index " << (int)codec << " > " << ESCO_NUM_CODECS;