You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/10/30 07:38:26 UTC

[incubator-nuttx] 03/07: bt_netdev.c: wrong placement of DEBUGASSERT (checks pointer before being set)

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch releases/10.0
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 1f8d3af752ef6992c8bc29099e43c27d7d80e5e5
Author: Matias N <ma...@protobits.dev>
AuthorDate: Wed Oct 28 23:47:00 2020 -0300

    bt_netdev.c: wrong placement of DEBUGASSERT (checks pointer before being set)
---
 wireless/bluetooth/bt_netdev.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/wireless/bluetooth/bt_netdev.c b/wireless/bluetooth/bt_netdev.c
index bc31c1d..cb980fd 100644
--- a/wireless/bluetooth/bt_netdev.c
+++ b/wireless/bluetooth/bt_netdev.c
@@ -885,12 +885,12 @@ static int btnet_req_data(FAR struct radio_driver_s *netdev,
   FAR struct iob_s *iob;
   bt_addr_le_t peer;
 
-  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);
+
   /* Create a connection structure for this peer if one does not already
    * exist.
    *