Skip to content
Commit 9339f249 authored by Aleksander Wasaznik's avatar Aleksander Wasaznik Committed by Carles Cufí
Browse files

Bluetooth: Host: Refactor tx_notify, use `CONTAINER_OF`



The cast from `sys_snode_t` to `struct bt_conn_tx` assumes `node` is the
first field in `struct bt_conn_tx`. It's better to future-proof this by
using `CONTAINER_OF` to locate `node`.

Signed-off-by: default avatarAleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
parent 123c088c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment