mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 17:59:32 +00:00
Bluetooth: Use list_for_each_entry() in mgmt
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
parent
b7059136d7
commit
12dc074301
1 changed files with 2 additions and 5 deletions
|
@ -694,14 +694,11 @@ static int update_eir(struct hci_dev *hdev)
|
||||||
|
|
||||||
static u8 get_service_classes(struct hci_dev *hdev)
|
static u8 get_service_classes(struct hci_dev *hdev)
|
||||||
{
|
{
|
||||||
struct list_head *p;
|
struct bt_uuid *uuid;
|
||||||
u8 val = 0;
|
u8 val = 0;
|
||||||
|
|
||||||
list_for_each(p, &hdev->uuids) {
|
list_for_each_entry(uuid, &hdev->uuids, list)
|
||||||
struct bt_uuid *uuid = list_entry(p, struct bt_uuid, list);
|
|
||||||
|
|
||||||
val |= uuid->svc_hint;
|
val |= uuid->svc_hint;
|
||||||
}
|
|
||||||
|
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue