From: Gustavo F. Padovan Date: Fri, 14 Oct 2011 22:32:56 +0000 (-0300) Subject: Bluetooth: Use list_for_each_entry() in mgmt X-Git-Tag: next-20111025~56^2~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=12dc0743015fee37f4090f0937c898294cd2d133;p=karo-tx-linux.git Bluetooth: Use list_for_each_entry() in mgmt Signed-off-by: Gustavo F. Padovan --- 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; }