bt_netdev.c: wrong placement of DEBUGASSERT (checks pointer before being set)
This commit is contained in:
parent
d53abbc4ac
commit
db37d825ba
@ -1045,12 +1045,12 @@ static int btnet_req_data(FAR struct radio_driver_s *netdev,
|
||||
FAR struct btnet_driver_s *priv;
|
||||
FAR struct bluetooth_frame_meta_s *btmeta;
|
||||
|
||||
wlinfo("Received framelist\n");
|
||||
DEBUGASSERT(priv != NULL && meta != NULL && framelist != NULL);
|
||||
|
||||
priv = (FAR struct btnet_driver_s *)netdev;
|
||||
btmeta = (FAR struct bluetooth_frame_meta_s *)meta;
|
||||
|
||||
wlinfo("Received framelist\n");
|
||||
DEBUGASSERT(priv != NULL && meta != NULL && framelist != NULL);
|
||||
|
||||
if (btmeta->bm_proto == BTPROTO_HCI)
|
||||
{
|
||||
return btnet_req_hci_data(priv, btmeta, framelist);
|
||||
|
Loading…
Reference in New Issue
Block a user