Skip to content

Commit ed3aa17

Browse files
cvinayakAnas Nashif
authored andcommitted
Bluetooth: controller: Remove redundant use of auto variable
Removed use of a redundant auto variable that was assigned and referenced only once. Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
1 parent 0936821 commit ed3aa17

File tree

1 file changed

+2
-4
lines changed
  • subsys/bluetooth/controller/ll_sw

1 file changed

+2
-4
lines changed

subsys/bluetooth/controller/ll_sw/ctrl.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3064,24 +3064,22 @@ isr_rx_conn_pkt(struct radio_pdu_node_rx *radio_pdu_node_rx,
30643064

30653065
if (_radio.conn_curr->empty == 0) {
30663066
struct radio_pdu_node_tx *node_tx;
3067-
u8_t pdu_data_tx_len, pdu_data_tx_ll_id;
3067+
u8_t pdu_data_tx_len;
30683068

30693069
node_tx = _radio.conn_curr->pkt_tx_head;
30703070
pdu_data_tx = (struct pdu_data *)
30713071
(node_tx->pdu_data +
30723072
_radio.conn_curr->packet_tx_head_offset);
30733073

30743074
pdu_data_tx_len = pdu_data_tx->len;
3075-
pdu_data_tx_ll_id = pdu_data_tx->ll_id;
3076-
30773075
if (pdu_data_tx_len != 0) {
30783076
/* if encrypted increment tx counter */
30793077
if (_radio.conn_curr->enc_tx) {
30803078
_radio.conn_curr->ccm_tx.counter++;
30813079
}
30823080

30833081
/* process ctrl packet on tx cmplt */
3084-
if (pdu_data_tx_ll_id == PDU_DATA_LLID_CTRL) {
3082+
if (pdu_data_tx->ll_id == PDU_DATA_LLID_CTRL) {
30853083
terminate =
30863084
isr_rx_conn_pkt_ack(pdu_data_tx,
30873085
&node_tx);

0 commit comments

Comments
 (0)