OSDN Git Service

Remove unnecessary CHECK in BleAdvertisingManager::Get()
authorJakub Pawlowski <jpawlowski@google.com>
Thu, 15 Mar 2018 20:09:33 +0000 (13:09 -0700)
committerJakub Pawlowski <jpawlowski@google.com>
Thu, 15 Mar 2018 22:53:03 +0000 (15:53 -0700)
commit23b0e501d724df9550e6b0038962904af32a5258
treef45af3b5f1187bdf4e48877e2074c927201680cb
parentcd3dd45a54ab0bc3238520e840f4dbf6a063fc8f
Remove unnecessary CHECK in BleAdvertisingManager::Get()

It is causing race conditions. Weak pointer is already taking care of
making sure the instance is valid, even if it was not yet initialized.

Bug: 74863151
Test: compilation
Change-Id: Iddb69f8a38d80044d1bdd7699fad020f710914be
(cherry picked from commit 68ef745a3af2fcdee03db4441016e5b5e0039c74)
stack/btm/btm_ble_multi_adv.cc