diff options
author | Dmitry Antipov <dmantipov@yandex.ru> | 2024-06-18 21:59:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-08-03 08:59:48 +0200 |
commit | 4a0d2efbb773b70fadaad54e33f4796956d850dd (patch) | |
tree | 5c34b33730e349a11894fecee565338fcd1f3b79 /net | |
parent | 8424783412074c6948a13147b4de6201694f49c8 (diff) | |
download | linux-stable-4a0d2efbb773b70fadaad54e33f4796956d850dd.tar.gz linux-stable-4a0d2efbb773b70fadaad54e33f4796956d850dd.tar.bz2 linux-stable-4a0d2efbb773b70fadaad54e33f4796956d850dd.zip |
Bluetooth: hci_core, hci_sync: cleanup struct discovery_state
[ Upstream commit da63f331353c9e1e6dc29e49e28f8f4fe5d642fd ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/hci_sync.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bluetooth/hci_sync.c b/net/bluetooth/hci_sync.c index eea34e6a236f..bb704088559f 100644 --- a/net/bluetooth/hci_sync.c +++ b/net/bluetooth/hci_sync.c @@ -371,8 +371,6 @@ static void le_scan_disable(struct work_struct *work) goto _return; } - hdev->discovery.scan_start = 0; - /* If we were running LE only scan, change discovery state. If * we were running both LE and BR/EDR inquiry simultaneously, * and BR/EDR inquiry is already finished, stop discovery, |