Skip to content

Commit 109c476

Browse files
jori-nordiccarlescufi
authored andcommitted
Bluetooth: l2cap: remove ambiguous naming
`l2cap_tx_meta_data` is also a function-like macro. Signed-off-by: Jonathan Rico <[email protected]>
1 parent 77e1a9d commit 109c476

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

subsys/bluetooth/host/l2cap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ struct l2cap_tx_meta {
7676
struct l2cap_tx_meta_data *data;
7777
};
7878

79-
static struct l2cap_tx_meta_data l2cap_tx_meta_data[CONFIG_BT_CONN_TX_MAX];
79+
static struct l2cap_tx_meta_data l2cap_tx_meta_data_storage[CONFIG_BT_CONN_TX_MAX];
8080
K_FIFO_DEFINE(free_l2cap_tx_meta_data);
8181

8282
static struct l2cap_tx_meta_data *alloc_tx_meta_data(void)
@@ -2706,8 +2706,8 @@ void bt_l2cap_init(void)
27062706
}
27072707

27082708
#if defined(CONFIG_BT_L2CAP_DYNAMIC_CHANNEL)
2709-
for (size_t i = 0; i < ARRAY_SIZE(l2cap_tx_meta_data); i++) {
2710-
k_fifo_put(&free_l2cap_tx_meta_data, &l2cap_tx_meta_data[i]);
2709+
for (size_t i = 0; i < ARRAY_SIZE(l2cap_tx_meta_data_storage); i++) {
2710+
k_fifo_put(&free_l2cap_tx_meta_data, &l2cap_tx_meta_data_storage[i]);
27112711
}
27122712
#endif /* CONFIG_BT_L2CAP_DYNAMIC_CHANNEL */
27132713
}

0 commit comments

Comments
 (0)