Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76a7f3a4 authored by Johan Hedberg's avatar Johan Hedberg
Browse files

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: default avatarJohan Hedberg <johan.hedberg@intel.com>
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 7ddb6e0f
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -2561,7 +2561,6 @@ int mgmt_index_removed(struct hci_dev *hdev)
}

struct cmd_lookup {
	u8 val;
	struct sock *sk;
	struct hci_dev *hdev;
};
@@ -2584,7 +2583,7 @@ static void settings_rsp(struct pending_cmd *cmd, void *data)

int mgmt_powered(struct hci_dev *hdev, u8 powered)
{
	struct cmd_lookup match = { powered, NULL, hdev };
	struct cmd_lookup match = { NULL, hdev };
	__le32 ev;
	int ret;

@@ -2608,7 +2607,7 @@ int mgmt_powered(struct hci_dev *hdev, u8 powered)

int mgmt_discoverable(struct hci_dev *hdev, u8 discoverable)
{
	struct cmd_lookup match = { discoverable, NULL, hdev };
	struct cmd_lookup match = { NULL, hdev };
	__le32 ev;
	int ret;

@@ -2627,7 +2626,7 @@ int mgmt_discoverable(struct hci_dev *hdev, u8 discoverable)
int mgmt_connectable(struct hci_dev *hdev, u8 connectable)
{
	__le32 ev;
	struct cmd_lookup match = { connectable, NULL, hdev };
	struct cmd_lookup match = { NULL, hdev };
	int ret;

	mgmt_pending_foreach(MGMT_OP_SET_CONNECTABLE, hdev, settings_rsp,