Skip to content

Commit

Permalink
Bluetooth: Use list_for_each_entry() in mgmt
Browse files Browse the repository at this point in the history
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Gustavo F. Padovan committed Oct 14, 2011
1 parent b705913 commit 12dc074
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions net/bluetooth/mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 12dc074

Please sign in to comment.