Files
Weihong Guan 8b1eff978e Bluetooth: hci_core: Add hci_free_adv_instance()
hci_remove_adv_instance() looks the instance up by its number and then
frees it. A caller that already holds the instance, found some other
way, has to look it up again by number to remove it.

Split the freeing into hci_free_adv_instance(), which takes the
instance itself, and have hci_remove_adv_instance() call it after the
lookup. No functional change.

Suggested-by: Luiz Augusto von Dentz <[email protected]>
Assisted-by: Claude:claude-opus-5.5
Signed-off-by: Weihong Guan <[email protected]>
Signed-off-by: Luiz Augusto von Dentz <[email protected]>
2026-11-11 14:52:07 -05:00
..
2022-07-22 17:14:13 -07:00