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

Commit f02f8286 authored by Jakub Pawlowski's avatar Jakub Pawlowski
Browse files

bta_gattc_start_discover: trivial style fix

reduce code indendation by one level, and make it easier to read

Test: compilation
Bug: none
Change-Id: I87a99046ab81cef640940166f0602a2ff67c3965
parent f81cac87
Loading
Loading
Loading
Loading
+31 −30
Original line number Diff line number Diff line
@@ -822,7 +822,11 @@ void bta_gattc_start_discover(tBTA_GATTC_CLCB* p_clcb,
  {
    p_clcb->auto_update = BTA_GATTC_NO_SCHEDULE;

    if (p_clcb->p_srcb != NULL) {
    if (p_clcb->p_srcb == NULL) {
      LOG(ERROR) << "unknown device, can not start discovery";
      return;
    }

    /* set all srcb related clcb into discovery ST */
    bta_gattc_set_discover_st(p_clcb->p_srcb);

@@ -854,9 +858,6 @@ void bta_gattc_start_discover(tBTA_GATTC_CLCB* p_clcb,
    }

    bta_gattc_start_discover_internal(p_clcb);
    } else {
      LOG(ERROR) << "unknown device, can not start discovery";
    }
  }
  /* pending operation, wait until it finishes */
  else {