Skip to contentSkip to conversation

cleanup qemu_find_bt_vlan

PATCH New Jan Kiszka 1 participant 1 message Oct 14, 2008

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 cleanup qemu_find_bt_vlan

Unless there are plans to actually make use of this code please remove it to reduce the warning storm a bit.

---
 vl.c |   22 ----------------------
 1 file changed, 22 deletions(-)
vl.c +0 -22
Index: b/vl.c
===================================================================
@@ -5361,28 +5361,6 @@ void do_info_network(void)
 static int nb_hcis;
 static int cur_hci;
 static struct HCIInfo *hci_table[MAX_NICS];
-static struct bt_vlan_s {
-    struct bt_scatternet_s net;
-    int id;
-    struct bt_vlan_s *next;
-} *first_bt_vlan;
-
-/* find or alloc a new bluetooth "VLAN" */
-static struct bt_scatternet_s *qemu_find_bt_vlan(int id)
-{
-    struct bt_vlan_s **pvlan, *vlan;
-    for (vlan = first_bt_vlan; vlan != NULL; vlan = vlan->next) {
-        if (vlan->id == id)
-            return &vlan->net;
-    }
-    vlan = qemu_mallocz(sizeof(struct bt_vlan_s));
-    vlan->id = id;
-    pvlan = &first_bt_vlan;
-    while (*pvlan != NULL)
-        pvlan = &(*pvlan)->next;
-    *pvlan = vlan;
-    return &vlan->net;
-}
 
 static void null_hci_send(struct HCIInfo *hci, const uint8_t *data, int len)
 {