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

Commit 2c323ed1 authored by Chris Manton's avatar Chris Manton
Browse files

bta::jv::bta_jv_rfcomm_connect: Readability use if-else

Bug: 341778157
Test: m .
Flag: EXEMPT, Mechanical Refactor

Add condition

Change-Id: Ic02a83cb083cd1ece1f38696e6620e9ecdfa1abe
parent dd2cc6ca
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1496,8 +1496,7 @@ void bta_jv_rfcomm_connect(tBTA_SEC sec_mask, uint8_t remote_scn,
          sec_mask) != PORT_SUCCESS) {
    log::error("RFCOMM_CreateConnection failed");
    evt_data.status = tBTA_JV_STATUS::FAILURE;
  }
  if (evt_data.status == tBTA_JV_STATUS::SUCCESS) {
  } else {
    tBTA_JV_PCB* p_pcb;
    tBTA_JV_RFC_CB* p_cb = bta_jv_alloc_rfc_cb(handle, &p_pcb);
    if (p_cb) {