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

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

Re-order conditional stack/l2cap/l2c_link::l2c_link_send_to_lower

Towards readability

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I5f893d86c383c871051aa550d75f17ead8143585
parent 9facde4c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1020,8 +1020,8 @@ static void l2c_link_send_to_lower(tL2C_LCB* p_lcb, BT_HDR* p_buf,
  const uint16_t link_xmit_quota = p_lcb->link_xmit_quota;
  const tBT_TRANSPORT transport = p_lcb->transport;

  if ((p_buf->len <= acl_packet_size_classic &&
       (transport == BT_TRANSPORT_BR_EDR)) ||
  if (((transport == BT_TRANSPORT_BR_EDR) &&
       (p_buf->len <= acl_packet_size_classic)) ||
      ((transport == BT_TRANSPORT_LE) && (p_buf->len <= acl_packet_size_ble))) {
    if (link_xmit_quota == 0) {
      if (transport == BT_TRANSPORT_LE)