]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
Bluetooth: MGMT: Remove unused mgmt_*_discovery_complete
authorDr. David Alan Gilbert <linux@treblig.org>
Mon, 27 Jan 2025 21:37:16 +0000 (21:37 +0000)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 25 Mar 2025 16:31:02 +0000 (12:31 -0400)
mgmt_start_discovery_complete() and mgmt_stop_discovery_complete() last
uses were removed in 2022 by
commit ec2904c259c5 ("Bluetooth: Remove dead code from hci_request.c")

Remove them.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/mgmt.c

index 6281063cbd8e44a91cf5b82e3e1184f8d93a4ac2..131ff1f4ebef55c0ec22360dd76994ff1bea17c2 100644 (file)
@@ -2354,8 +2354,6 @@ void mgmt_auth_enable_complete(struct hci_dev *hdev, u8 status);
 void mgmt_set_class_of_dev_complete(struct hci_dev *hdev, u8 *dev_class,
                                    u8 status);
 void mgmt_set_local_name_complete(struct hci_dev *hdev, u8 *name, u8 status);
-void mgmt_start_discovery_complete(struct hci_dev *hdev, u8 status);
-void mgmt_stop_discovery_complete(struct hci_dev *hdev, u8 status);
 void mgmt_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type,
                       u8 addr_type, u8 *dev_class, s8 rssi, u32 flags,
                       u8 *eir, u16 eir_len, u8 *scan_rsp, u8 scan_rsp_len,
index 621c555f639be3f26f226b853ff7e9d7e3539f90..12835e5054bedd9efcda87c0022e6993c522a550 100644 (file)
@@ -5743,29 +5743,6 @@ done:
        return err;
 }
 
-void mgmt_start_discovery_complete(struct hci_dev *hdev, u8 status)
-{
-       struct mgmt_pending_cmd *cmd;
-
-       bt_dev_dbg(hdev, "status %u", status);
-
-       hci_dev_lock(hdev);
-
-       cmd = pending_find(MGMT_OP_START_DISCOVERY, hdev);
-       if (!cmd)
-               cmd = pending_find(MGMT_OP_START_SERVICE_DISCOVERY, hdev);
-
-       if (!cmd)
-               cmd = pending_find(MGMT_OP_START_LIMITED_DISCOVERY, hdev);
-
-       if (cmd) {
-               cmd->cmd_complete(cmd, mgmt_status(status));
-               mgmt_pending_remove(cmd);
-       }
-
-       hci_dev_unlock(hdev);
-}
-
 static bool discovery_type_is_valid(struct hci_dev *hdev, uint8_t type,
                                    uint8_t *mgmt_status)
 {
@@ -6018,23 +5995,6 @@ failed:
        return err;
 }
 
-void mgmt_stop_discovery_complete(struct hci_dev *hdev, u8 status)
-{
-       struct mgmt_pending_cmd *cmd;
-
-       bt_dev_dbg(hdev, "status %u", status);
-
-       hci_dev_lock(hdev);
-
-       cmd = pending_find(MGMT_OP_STOP_DISCOVERY, hdev);
-       if (cmd) {
-               cmd->cmd_complete(cmd, mgmt_status(status));
-               mgmt_pending_remove(cmd);
-       }
-
-       hci_dev_unlock(hdev);
-}
-
 static void stop_discovery_complete(struct hci_dev *hdev, void *data, int err)
 {
        struct mgmt_pending_cmd *cmd = data;