Bluetooth: Controller: Use BT_ASSERT instead of custom impl.

As part of closer integration into Zephyr, remove the use
of custom assert mechanism and use BT_ASSERT instead.

Jira: ZEP-761

Change-id: I27f37d697b0a84bc001754a8d0b4dbb6ddb54298
Signed-off-by: Vinayak Chettimada <vinayak.kariappa.chettimada@nordicsemi.no>
This commit is contained in:
Vinayak Chettimada 2016-09-08 18:08:58 +02:00 committed by Johan Hedberg
commit e00eed79aa
10 changed files with 192 additions and 215 deletions

View file

@ -225,10 +225,10 @@ static void native_recv_fiber(int unused0, int unused1)
int retval;
hci_encode_num_cmplt(handle, num_cmplt, &len, &buf);
ASSERT(len);
BT_ASSERT(len);
retval = native_recv(len, buf);
ASSERT(!retval);
BT_ASSERT(!retval);
fiber_yield();
}
@ -245,7 +245,7 @@ static void native_recv_fiber(int unused0, int unused1)
*/
if (len) {
retval = native_recv(len, buf);
ASSERT(!retval);
BT_ASSERT(!retval);
}
radio_rx_dequeue();