projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bluetooth: Convert inquiry cache to use standard list types
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
net
/
bluetooth
/
hci_sysfs.c
diff --git
a/net/bluetooth/hci_sysfs.c
b/net/bluetooth/hci_sysfs.c
index 52109561423514fcbd16e1c1895d2e9f7ee7a490..ed9cceeec7bea13cef19044eb35224f860e90041 100644
(file)
--- a/
net/bluetooth/hci_sysfs.c
+++ b/
net/bluetooth/hci_sysfs.c
@@
-388,7
+388,7
@@
static int inquiry_cache_show(struct seq_file *f, void *p)
hci_dev_lock(hdev);
-
for (e = cache->list; e; e = e->nex
t) {
+
list_for_each_entry(e, &cache->list, lis
t) {
struct inquiry_data *data = &e->data;
seq_printf(f, "%s %d %d %d 0x%.2x%.2x%.2x 0x%.4x %d %d %u\n",
batostr(&data->bdaddr),