Bluetooth: Convert inquiry cache to use standard list types
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / bluetooth / hci_sysfs.c
index 52109561423514fcbd16e1c1895d2e9f7ee7a490..ed9cceeec7bea13cef19044eb35224f860e90041 100644 (file)
@@ -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->next) {
+       list_for_each_entry(e, &cache->list, list) {
                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),