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

Commit 24be0a16 authored by Zach Johnson's avatar Zach Johnson
Browse files

Fix error introduced in Ica18fd19ecf6718c88b9f24ba99a290a7abdaf99

Before:

if (bta_dm_search_cb.uuid_to_search == 0 ||
            bta_dm_search_cb.service_index != BTA_BLE_SERVICE_ID)

After:
if (bta_dm_search_cb.service_index != BTA_BLE_SERVICE_ID)

bta_dm_search_cb.uuid_to_search was always 0, so it should the old code
was effectively

if (true || ...)

so it should have not had a conditional at all

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Iddbd0b51b26711e2bc576e3d5499932fab434363
parent 65ab8951
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1106,7 +1106,6 @@ void bta_dm_sdp_result(tBTA_DM_MSG* p_data) {

      if (bta_dm_search_cb.services == BTA_ALL_SERVICE_MASK &&
          bta_dm_search_cb.services_to_search == 0) {
        if (bta_dm_search_cb.service_index != BTA_BLE_SERVICE_ID)
        bta_dm_search_cb.service_index++;
      } else /* regular one service per search or PNP search */
        break;