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

Commit 12dc0743 authored by Gustavo Padovan's avatar Gustavo Padovan
Browse files

Bluetooth: Use list_for_each_entry() in mgmt

parent b7059136
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -694,14 +694,11 @@ static int update_eir(struct hci_dev *hdev)

static u8 get_service_classes(struct hci_dev *hdev)
{
	struct list_head *p;
	struct bt_uuid *uuid;
	u8 val = 0;

	list_for_each(p, &hdev->uuids) {
		struct bt_uuid *uuid = list_entry(p, struct bt_uuid, list);

	list_for_each_entry(uuid, &hdev->uuids, list)
		val |= uuid->svc_hint;
	}

	return val;
}