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

Commit 935ab67a authored by Zach Johnson's avatar Zach Johnson
Browse files

hci_status is always success

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ibb1a0a50a0f9267ca8e5c47e85dc6cc1787e0bcf
parent dd1d8bd6
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -1196,7 +1196,6 @@ tINQ_DB_ENT* btm_inq_db_new(const RawAddress& p_bda) {
static void btm_set_inq_event_filter() {
  btm_cb.btm_inq_vars.inqfilt_active = true;

  uint8_t hci_status;
  tBTM_STATUS status;
  tBTM_INQUIRY_VAR_ST* p_inq = &btm_cb.btm_inq_vars;
  tBTM_CMPL_CB* p_cb = p_inq->p_inqfilter_cmpl_cb;
@@ -1217,16 +1216,6 @@ static void btm_set_inq_event_filter() {
  /* Only process the inquiry filter; Ignore the connection filter until it
     is used by the upper layers */
  if (p_inq->inqfilt_active) {
    /* Extract the returned status from the buffer */
    hci_status = HCI_SUCCESS;
    if (hci_status != HCI_SUCCESS) {
      /* If standalone operation, return the error status; if embedded in the
       * inquiry, continue the inquiry */
      BTM_TRACE_WARNING(
          "BTM Warning: Set Event Filter Failed (HCI returned 0x%x)",
          hci_status);
      status = BTM_ERR_PROCESSING;
    } else
    status = BTM_SUCCESS;

    /* If the set filter was initiated externally (via BTM_SetInqEventFilter),