projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b705913
)
Bluetooth: Use list_for_each_entry() in mgmt
author
Gustavo F. Padovan
<padovan@profusion.mobi>
Fri, 14 Oct 2011 22:32:56 +0000
(19:32 -0300)
committer
Gustavo F. Padovan
<padovan@profusion.mobi>
Fri, 14 Oct 2011 22:32:56 +0000
(19:32 -0300)
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/mgmt.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/mgmt.c
b/net/bluetooth/mgmt.c
index 9d0e223855735f87b42b48e1acf657dde7920a46..080cfb6347e8b9dabfa24cd9b188612f1c4b457d 100644
(file)
--- 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;
}