aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-16 17:34:40 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-17 04:27:11 -0500
commit76a7f3a40c2bfbdb5f2b23ac780fa4e4f22e8659 (patch)
treeeba2d9b800e7681a7841bb34408ae514fb644803 /net/bluetooth/mgmt.c
parent7ddb6e0f3f7aa265c905b947e9ac4ab9562e52f2 (diff)
Bluetooth: Remove unused member from cmd_lookup struct
The val member of cmd_lookup isn't used anywhere so it can be removed. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 066d338be1ce..5520858553cc 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -2561,7 +2561,6 @@ int mgmt_index_removed(struct hci_dev *hdev)
2561} 2561}
2562 2562
2563struct cmd_lookup { 2563struct cmd_lookup {
2564 u8 val;
2565 struct sock *sk; 2564 struct sock *sk;
2566 struct hci_dev *hdev; 2565 struct hci_dev *hdev;
2567}; 2566};
@@ -2584,7 +2583,7 @@ static void settings_rsp(struct pending_cmd *cmd, void *data)
2584 2583
2585int mgmt_powered(struct hci_dev *hdev, u8 powered) 2584int mgmt_powered(struct hci_dev *hdev, u8 powered)
2586{ 2585{
2587 struct cmd_lookup match = { powered, NULL, hdev }; 2586 struct cmd_lookup match = { NULL, hdev };
2588 __le32 ev; 2587 __le32 ev;
2589 int ret; 2588 int ret;
2590 2589
@@ -2608,7 +2607,7 @@ int mgmt_powered(struct hci_dev *hdev, u8 powered)
2608 2607
2609int mgmt_discoverable(struct hci_dev *hdev, u8 discoverable) 2608int mgmt_discoverable(struct hci_dev *hdev, u8 discoverable)
2610{ 2609{
2611 struct cmd_lookup match = { discoverable, NULL, hdev }; 2610 struct cmd_lookup match = { NULL, hdev };
2612 __le32 ev; 2611 __le32 ev;
2613 int ret; 2612 int ret;
2614 2613
@@ -2627,7 +2626,7 @@ int mgmt_discoverable(struct hci_dev *hdev, u8 discoverable)
2627int mgmt_connectable(struct hci_dev *hdev, u8 connectable) 2626int mgmt_connectable(struct hci_dev *hdev, u8 connectable)
2628{ 2627{
2629 __le32 ev; 2628 __le32 ev;
2630 struct cmd_lookup match = { connectable, NULL, hdev }; 2629 struct cmd_lookup match = { NULL, hdev };
2631 int ret; 2630 int ret;
2632 2631
2633 mgmt_pending_foreach(MGMT_OP_SET_CONNECTABLE, hdev, settings_rsp, 2632 mgmt_pending_foreach(MGMT_OP_SET_CONNECTABLE, hdev, settings_rsp,