main: Update error handling
Test: builds
Change-Id: Ibc6b1d94f49bd711e7844ae769c384f76d357f22
diff --git a/main/bte_main.cc b/main/bte_main.cc
index 35ded9d..58e44fd 100644
--- a/main/bte_main.cc
+++ b/main/bte_main.cc
@@ -100,8 +100,10 @@
module_init(get_module(INTEROP_MODULE));
hci = hci_layer_get_interface();
- if (!hci)
+ if (!hci) {
LOG_ERROR(LOG_TAG, "%s could not get hci layer interface.", __func__);
+ return;
+ }
btu_hci_msg_queue = fixed_queue_new(SIZE_MAX);
if (btu_hci_msg_queue == NULL) {