Skip to content
Snippets Groups Projects
Commit 6928c5d4 authored by Martine Lenders's avatar Martine Lenders Committed by Oleg Hahm
Browse files

pkg: nordic_softdevice_ble: fix cppcheck warnings

parent 984077d3
No related branches found
No related tags found
No related merge requests found
......@@ -73,6 +73,9 @@ static ble_mac_callback_t _callback;
*/
static ble_mac_interface_t *ble_mac_interface_lookup(ble_ipsp_handle_t *handle)
{
if (handle == NULL) {
return NULL;
}
for (int i = 0; i < BLE_MAC_MAX_INTERFACE_NUM; i++) {
if (interfaces[i].handle.conn_handle == handle->conn_handle &&
interfaces[i].handle.cid == handle->cid) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment