mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 22:20:01 +08:00
bt_netdev.c: wrong placement of DEBUGASSERT (checks pointer before being set)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user