Skip to content

Commit c62bd3a

Browse files
rkelcfriedt
authored andcommitted
Bluetooth: Remove _node field of bt_conn_cb if not used
After the #93703 PR was merged we get a possibility to remove _node field from bt_conn_cb struct if the BT_CONN_DYNAMIC_CALLBACKS option is disabled. The list conn_cbs can also be safely removed by more macro usage. Signed-off-by: Radosław Koppel <[email protected]>
1 parent a9dc939 commit c62bd3a

File tree

2 files changed

+96
-181
lines changed

2 files changed

+96
-181
lines changed

include/zephyr/bluetooth/conn.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2175,8 +2175,10 @@ struct bt_conn_cb {
21752175
void (*role_changed)(struct bt_conn *conn, uint8_t status);
21762176
#endif
21772177

2178+
#if defined(CONFIG_BT_CONN_DYNAMIC_CALLBACKS)
21782179
/** @internal Internally used field for list handling */
21792180
sys_snode_t _node;
2181+
#endif
21802182
};
21812183

21822184
/** @brief Register connection callbacks.

0 commit comments

Comments
 (0)