mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-28 16:11:24 +00:00
hci: use NULL
This commit is contained in:
parent
e309e9332a
commit
f29c10235a
@ -8517,7 +8517,7 @@ uint8_t gap_connect(const bd_addr_t addr, bd_addr_type_t addr_type) {
|
||||
hci_connection_t * conn = hci_connection_for_bd_addr_and_type(addr, addr_type);
|
||||
if (conn == NULL) {
|
||||
conn = create_connection_for_bd_addr_and_type(addr, addr_type, HCI_ROLE_MASTER);
|
||||
if (conn == false){
|
||||
if (conn == NULL){
|
||||
// alloc failed
|
||||
log_info("gap_connect: failed to alloc hci_connection_t");
|
||||
return BTSTACK_MEMORY_ALLOC_FAILED;
|
||||
|
Loading…
x
Reference in New Issue
Block a user