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

Commit 37c51981 authored by Chris Manton's avatar Chris Manton
Browse files

Streamline BTM_InqDbRead

Bug: 163134718
Tag: #refactor
Test: gd/cert/run
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 lines

Change-Id: I3f85a448b88aa412a7278d28ff46f1f04e1443a6
parent 308e3545
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -649,12 +649,8 @@ tBTM_STATUS BTM_CancelRemoteDeviceName(void) {
 *
 ******************************************************************************/
tBTM_INQ_INFO* BTM_InqDbRead(const RawAddress& p_bda) {
  VLOG(1) << __func__ << ": bd addr " << p_bda;

  tINQ_DB_ENT* p_ent = btm_inq_db_find(p_bda);
  if (!p_ent) return NULL;

  return &p_ent->inq_info;
  return (p_ent == nullptr) ? nullptr : &p_ent->inq_info;
}

/*******************************************************************************