Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: hci_core: cleanup struct hci_dev

Remove unused and set but otherwise unused 'discovery_old_state'
and 'sco_last_tx' members of 'struct hci_dev'. The first one is
a leftover after commit 182ee45da083 ("Bluetooth: hci_sync: Rework
hci_suspend_notifier"); the second one is originated from ancient
2.4.19 and I was unable to find any actual use since that.

Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Dmitry Antipov and committed by
Luiz Augusto von Dentz
3ba74b2f 1723b550

-3
-2
include/net/bluetooth/hci_core.h
··· 476 476 unsigned int iso_pkts; 477 477 478 478 unsigned long acl_last_tx; 479 - unsigned long sco_last_tx; 480 479 unsigned long le_last_tx; 481 480 482 481 __u8 le_tx_def_phys; ··· 527 528 528 529 struct discovery_state discovery; 529 530 530 - int discovery_old_state; 531 531 bool discovery_paused; 532 532 int advertising_old_state; 533 533 bool advertising_paused;
-1
net/bluetooth/hci_sync.c
··· 5853 5853 return err; 5854 5854 5855 5855 hdev->discovery_paused = true; 5856 - hdev->discovery_old_state = old_state; 5857 5856 hci_discovery_set_state(hdev, DISCOVERY_STOPPED); 5858 5857 5859 5858 return 0;