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

Commit 20c229b5 authored by Zach Johnson's avatar Zach Johnson
Browse files

Replace equivalent expression

The function sets the mode to include BTM_BLE_GENERAL_INQUIRY, the mask
would only return this value.

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I9a0cf06035c7eac2638dd86ac9b4ab73354f99e6
parent eb52ea2c
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -633,8 +633,7 @@ tBTM_STATUS BTM_StartInquiry(tBTM_INQ_RESULTS_CB* p_results_cb,
  tBTM_STATUS status = BTM_CMD_STARTED;
  if (controller_get_interface()->supports_ble()) {
    /* BLE for now does not support filter condition for inquiry */
    status = btm_ble_start_inquiry(
        (uint8_t)(p_inq->inqparms.mode & BTM_BLE_INQUIRY_MASK),
    status = btm_ble_start_inquiry(BTM_BLE_GENERAL_INQUIRY,
                                   p_inq->inqparms.duration);
    if (status != BTM_CMD_STARTED) {
      LOG(ERROR) << __func__ << ": Error Starting LE Inquiry";