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

Commit ad4d75c8 authored by Zach Johnson's avatar Zach Johnson
Browse files

Simpify boolean expression

Bug: 159815595
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: Ic8717d02f73c5fc0ca2f6f7be4173b1574613490
parent f5ae7bbe
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -4651,9 +4651,7 @@ tBTM_STATUS btm_sec_execute_procedure(tBTM_SEC_DEV_REC* p_dev_rec) {

  /* If connection is not authorized and authorization is required */
  /* start authorization and return PENDING to the caller */
  if (!(p_dev_rec->sec_flags & BTM_SEC_AUTHORIZED) &&
      ((p_dev_rec->is_originator && false) ||
       (!p_dev_rec->is_originator && false))) {
  if (!(p_dev_rec->sec_flags & BTM_SEC_AUTHORIZED) && (false || false)) {
    BTM_TRACE_EVENT(
        "service id:%d, is trusted:%d", p_dev_rec->p_cur_service->service_id,
        (BTM_SEC_IS_SERVICE_TRUSTED(p_dev_rec->trusted_mask,