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

Commit b26fea26 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Bluetooth: Replace assert() with CHECK()"

parents eb245db7 3561717e
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -16,8 +16,6 @@


#include "vendor_interface.h"
#include "vendor_interface.h"


#include <assert.h>

#define LOG_TAG "android.hardware.bluetooth@1.0-impl"
#define LOG_TAG "android.hardware.bluetooth@1.0-impl"
#include <android-base/logging.h>
#include <android-base/logging.h>
#include <cutils/properties.h>
#include <cutils/properties.h>
@@ -165,7 +163,7 @@ bool VendorInterface::Initialize(
    InitializeCompleteCallback initialize_complete_cb,
    InitializeCompleteCallback initialize_complete_cb,
    PacketReadCallback event_cb, PacketReadCallback acl_cb,
    PacketReadCallback event_cb, PacketReadCallback acl_cb,
    PacketReadCallback sco_cb) {
    PacketReadCallback sco_cb) {
  assert(!g_vendor_interface);
  CHECK(!g_vendor_interface);
  g_vendor_interface = new VendorInterface();
  g_vendor_interface = new VendorInterface();
  return g_vendor_interface->Open(initialize_complete_cb, event_cb, acl_cb,
  return g_vendor_interface->Open(initialize_complete_cb, event_cb, acl_cb,
                                  sco_cb);
                                  sco_cb);