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

Commit 1fc19da4 authored by Tom Cherry's avatar Tom Cherry Committed by Myles Watson
Browse files

btif: Name the unique_lock in initialize_transaction()

initialize_transaction()'s unique_lock is released immediately as a
temporary variable because it does not have a name.

Bug: 72525761
Test: None
Change-Id: Ic1b1a0bd3ab1e5f993ffe5e81b0cc390cb4e34ab
parent e1ddc3c2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5205,7 +5205,7 @@ const btrc_ctrl_interface_t* btif_rc_ctrl_get_interface(void) {
 *      Returns          void
 ******************************************************************************/
static void initialize_transaction(int lbl) {
  std::unique_lock<std::recursive_mutex>(device.lbllock);
  std::unique_lock<std::recursive_mutex> lock(device.lbllock);
  if (lbl < MAX_TRANSACTIONS_PER_SESSION) {
    if (alarm_is_scheduled(device.transaction[lbl].txn_timer)) {
      clear_cmd_timeout(lbl);