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

Commit dd2cc6ca authored by Chris Manton's avatar Chris Manton
Browse files

bta::jv::bta_jv_rfcomm_connect: Simply rfcomm connect condition

The status field condition is idempotent

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

Remove unecessary condition

Change-Id: I926728a7529808d168bceb21e51df4d0ce99f8dd
parent 25893f2d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1490,8 +1490,7 @@ void bta_jv_rfcomm_connect(tBTA_SEC sec_mask, uint8_t remote_scn,
        BTM_SEC_PROTO_RFCOMM, 0);
  }

  if (evt_data.status == tBTA_JV_STATUS::SUCCESS &&
      RFCOMM_CreateConnectionWithSecurity(
  if (RFCOMM_CreateConnectionWithSecurity(
          UUID_SERVCLASS_SERIAL_PORT, remote_scn, false, BTA_JV_DEF_RFC_MTU,
          peer_bd_addr, &handle, bta_jv_port_mgmt_cl_cback,
          sec_mask) != PORT_SUCCESS) {