USB: Bluetooth: Remove assert for NULL buffer
Buffer are allocated with K_FOREVER should never fail, in addition to that asserts needs to be enabled and is not worth converting to runtime check given the use of K_FOREVER. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
7177f998f7
commit
8a358523e7
1 changed files with 0 additions and 1 deletions
|
@ -275,7 +275,6 @@ static void acl_read_cb(u8_t ep, int size, void *priv)
|
||||||
}
|
}
|
||||||
|
|
||||||
buf = net_buf_alloc(&acl_rx_pool, K_FOREVER);
|
buf = net_buf_alloc(&acl_rx_pool, K_FOREVER);
|
||||||
__ASSERT_NO_MSG(buf);
|
|
||||||
|
|
||||||
net_buf_reserve(buf, BT_BUF_RESERVE);
|
net_buf_reserve(buf, BT_BUF_RESERVE);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue