mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Bluetooth: Replace assert() with CHECK()
Test: Bluetooth starts/stops, VtsHalBluetoothV1_0TargetTest passes Change-Id: I1ecdf4ed7507fc8e2f00c35f136cb13e145713e5
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
|
||||
#include "vendor_interface.h"
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#define LOG_TAG "android.hardware.bluetooth@1.0-impl"
|
||||
#include <android-base/logging.h>
|
||||
#include <cutils/properties.h>
|
||||
@@ -165,7 +163,7 @@ bool VendorInterface::Initialize(
|
||||
InitializeCompleteCallback initialize_complete_cb,
|
||||
PacketReadCallback event_cb, PacketReadCallback acl_cb,
|
||||
PacketReadCallback sco_cb) {
|
||||
assert(!g_vendor_interface);
|
||||
CHECK(!g_vendor_interface);
|
||||
g_vendor_interface = new VendorInterface();
|
||||
return g_vendor_interface->Open(initialize_complete_cb, event_cb, acl_cb,
|
||||
sco_cb);
|
||||
|
||||
Reference in New Issue
Block a user