mirror of
https://github.com/torvalds/linux.git
synced 2026-11-20 13:03:48 +00:00
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]>