summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2011-10-14 19:32:56 -0300
committerGustavo F. Padovan <padovan@profusion.mobi>2011-10-14 19:32:56 -0300
commit12dc0743015fee37f4090f0937c898294cd2d133 (patch)
tree55f7dcbf85d08c6d9c926217cbeccc986a8e73a5 /net/bluetooth/mgmt.c
parentb7059136d765603f2cff05d5e2d4850a4e505ec8 (diff)
downloadlinux-12dc0743015fee37f4090f0937c898294cd2d133.tar.gz
linux-12dc0743015fee37f4090f0937c898294cd2d133.tar.bz2
linux-12dc0743015fee37f4090f0937c898294cd2d133.zip
Bluetooth: Use list_for_each_entry() in mgmt
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 9d0e22385573..080cfb6347e8 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -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;
}