]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Bluetooth: hci_core: remove obsolete adv_instance
authorFlorian Grandel <fgrandel@gmail.com>
Thu, 18 Jun 2015 01:16:52 +0000 (03:16 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 18 Jun 2015 16:11:53 +0000 (18:11 +0200)
Now that the obsolete adv_instance is no longer being referenced
anywhere in the code it can be removed without breaking the build.

Signed-off-by: Florian Grandel <fgrandel@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c

index 4f58a0e6e0d3a6324a0445c2a585ad73b61b0620..a6cec6d21affd88deb1dd2358f7be11388f1d1aa 100644 (file)
@@ -379,7 +379,6 @@ struct hci_dev {
        __u8                    scan_rsp_data[HCI_MAX_AD_LENGTH];
        __u8                    scan_rsp_data_len;
 
-       struct adv_info         adv_instance;
        struct list_head        adv_instances;
        unsigned int            adv_instance_cnt;
        __u8                    cur_adv_instance;
@@ -584,11 +583,6 @@ static inline void hci_discovery_filter_clear(struct hci_dev *hdev)
        hdev->discovery.scan_duration = 0;
 }
 
-static inline void adv_info_init(struct hci_dev *hdev)
-{
-       memset(&hdev->adv_instance, 0, sizeof(struct adv_info));
-}
-
 bool hci_discovery_active(struct hci_dev *hdev);
 
 void hci_discovery_set_state(struct hci_dev *hdev, int state);
index e50f7c3c67f87839fdf0caed73b7615a043f8d4d..86ed44e396490daee2617adcf0eb9c4b1b47e121 100644 (file)
@@ -3224,7 +3224,6 @@ struct hci_dev *hci_alloc_dev(void)
 
        hci_init_sysfs(hdev);
        discovery_init(hdev);
-       adv_info_init(hdev);
 
        return hdev;
 }