Skip to content

Commit

Permalink
Bluetooth: Remove useless field init_credits
Browse files Browse the repository at this point in the history
Remove `bt_l2cap_le_endpoint.init_credits` that has zero uses and is
just taking up RAM for no reason.

Signed-off-by: Aleksander Wasaznik <[email protected]>
  • Loading branch information
alwa-nordic authored and nashif committed May 21, 2024
1 parent c6e3bc3 commit a530010
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions doc/releases/migration-guide-3.7.rst
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,10 @@ Bluetooth Host
(:github:`71686`)

* The field :code:`init_credits` in :c:type:`bt_l2cap_le_endpoint` has been removed as it was no
longer used in Zephyr 3.4.0 and later. Any references to this field should be removed. No further
action is needed.

Networking
**********

Expand Down
2 changes: 0 additions & 2 deletions include/zephyr/bluetooth/l2cap.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ struct bt_l2cap_le_endpoint {
uint16_t mtu;
/** Endpoint Maximum PDU payload Size */
uint16_t mps;
/** Endpoint initial credits */
uint16_t init_credits;
/** Endpoint credits */
atomic_t credits;
};
Expand Down

0 comments on commit a530010

Please sign in to comment.