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

Commit 2a47871a authored by William Escande's avatar William Escande
Browse files

reduce indentation

From gkaiser feedback:
If uid_seq is NULL, then we return from the function, the later check is
not useful

Test: atest net_test_stack_sdp
Bug: 252902891
Change-Id: I27043b350ec9d323b47f92cc6c1f2cc7f3a56b0a
parent e599bb71
Loading
Loading
Loading
Loading
+45 −47
Original line number Diff line number Diff line
@@ -1110,7 +1110,6 @@ static uint16_t sdp_pbap_pse_dynamic_attributes_len_update(

  int xx;
  tSDP_ATTRIBUTE attr;
  if (uid_seq) {
  for (p_rec = (tSDP_RECORD*)sdp_db_service_search(NULL, uid_seq); p_rec;
       p_rec = (tSDP_RECORD*)sdp_db_service_search(p_rec, uid_seq)) {
    attr = p_rec->attribute[1];
@@ -1161,7 +1160,6 @@ static uint16_t sdp_pbap_pse_dynamic_attributes_len_update(
      break;
    }
  }
  }
  SDP_TRACE_DEBUG("pse_dynamic_attributes_len = %d",
                  p_ccb->pse_dynamic_attributes_len);
  return p_ccb->pse_dynamic_attributes_len;