Bluetooth: hci_core, hci_sync: cleanup struct discovery_state
authorDmitry Antipov <dmantipov@yandex.ru>
Tue, 18 Jun 2024 18:59:32 +0000 (21:59 +0300)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 15 Jul 2024 01:34:43 +0000 (21:34 -0400)
commitda63f331353c9e1e6dc29e49e28f8f4fe5d642fd
tree95faefc7c6f59a8a92c2572359d1b64efd5d3441
parent295ef07a9dae6182ad4b689aa8c6a7dbba21474c
Bluetooth: hci_core, hci_sync: cleanup struct discovery_state

After commit 78db544b5d27 ("Bluetooth: hci_core: Remove le_restart_scan
work"), 'scan_start' and 'scan_duration' of 'struct discovery_state'
are still initialized but actually unused. So remove the aforementioned
fields and adjust 'hci_discovery_filter_clear()' and 'le_scan_disable()'
accordingly. Compile tested only.

Fixes: 78db544b5d27 ("Bluetooth: hci_core: Remove le_restart_scan work")
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_sync.c