@@ -263,10 +263,8 @@ static void tx_packet_set(struct connection *conn,
263263static void prepare_pdu_data_tx (struct connection * conn ,
264264 struct pdu_data * * pdu_data_tx );
265265static void packet_rx_allocate (u8_t max );
266-
267- static u8_t packet_rx_acquired_count_get (void );
268-
269- static struct radio_pdu_node_rx * packet_rx_reserve_get (u8_t count );
266+ static inline u8_t packet_rx_acquired_count_get (void );
267+ static inline struct radio_pdu_node_rx * packet_rx_reserve_get (u8_t count );
270268static void packet_rx_enqueue (void );
271269static void packet_tx_enqueue (u8_t max );
272270static struct pdu_data * empty_tx_enqueue (struct connection * conn );
@@ -8045,7 +8043,7 @@ static void packet_rx_allocate(u8_t max)
80458043 }
80468044}
80478045
8048- static u8_t packet_rx_acquired_count_get (void )
8046+ static inline u8_t packet_rx_acquired_count_get (void )
80498047{
80508048 if (_radio .packet_rx_acquire >=
80518049 _radio .packet_rx_last ) {
@@ -8058,18 +8056,13 @@ static u8_t packet_rx_acquired_count_get(void)
80588056 }
80598057}
80608058
8061- static struct radio_pdu_node_rx * packet_rx_reserve_get (u8_t count )
8059+ static inline struct radio_pdu_node_rx * packet_rx_reserve_get (u8_t count )
80628060{
8063- struct radio_pdu_node_rx * radio_pdu_node_rx ;
8064-
80658061 if (count > packet_rx_acquired_count_get ()) {
80668062 return 0 ;
80678063 }
80688064
8069- radio_pdu_node_rx = _radio .packet_rx [_radio .packet_rx_last ];
8070- radio_pdu_node_rx -> hdr .type = NODE_RX_TYPE_DC_PDU ;
8071-
8072- return radio_pdu_node_rx ;
8065+ return _radio .packet_rx [_radio .packet_rx_last ];
80738066}
80748067
80758068static void packet_rx_callback (void )
0 commit comments