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: MGMT: Remove unused mgmt_pending_find_data

mgmt_pending_find_data() last use was removed in 2021 by
commit 5a7501374664 ("Bluetooth: hci_sync: Convert MGMT_OP_GET_CLOCK_INFO")

Remove it.

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>

authored by

Dr. David Alan Gilbert and committed by
Luiz Augusto von Dentz
276af34d 2dd1c1ee

-21
-17
net/bluetooth/mgmt_util.c
··· 229 229 return NULL; 230 230 } 231 231 232 - struct mgmt_pending_cmd *mgmt_pending_find_data(unsigned short channel, 233 - u16 opcode, 234 - struct hci_dev *hdev, 235 - const void *data) 236 - { 237 - struct mgmt_pending_cmd *cmd; 238 - 239 - list_for_each_entry(cmd, &hdev->mgmt_pending, list) { 240 - if (cmd->user_data != data) 241 - continue; 242 - if (cmd->opcode == opcode) 243 - return cmd; 244 - } 245 - 246 - return NULL; 247 - } 248 - 249 232 void mgmt_pending_foreach(u16 opcode, struct hci_dev *hdev, 250 233 void (*cb)(struct mgmt_pending_cmd *cmd, void *data), 251 234 void *data)
-4
net/bluetooth/mgmt_util.h
··· 54 54 55 55 struct mgmt_pending_cmd *mgmt_pending_find(unsigned short channel, u16 opcode, 56 56 struct hci_dev *hdev); 57 - struct mgmt_pending_cmd *mgmt_pending_find_data(unsigned short channel, 58 - u16 opcode, 59 - struct hci_dev *hdev, 60 - const void *data); 61 57 void mgmt_pending_foreach(u16 opcode, struct hci_dev *hdev, 62 58 void (*cb)(struct mgmt_pending_cmd *cmd, void *data), 63 59 void *data);