bt_netdev.c: wrong placement of DEBUGASSERT (checks pointer before being set)

This commit is contained in:
Matias N 2020-10-28 23:47:00 -03:00 committed by Brennan Ashton
parent d53abbc4ac
commit db37d825ba

View File

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