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:
Luiz Augusto von Dentz 2020-03-11 11:29:41 -07:00 committed by Johan Hedberg
commit 8a358523e7

View file

@ -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);