qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] cleanup qemu_find_bt_vlan
@ 2008-10-14  9:12 Jan Kiszka
  0 siblings, 0 replies; only message in thread
From: Jan Kiszka @ 2008-10-14  9:12 UTC (permalink / raw)
  To: qemu-devel

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

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 vl.c |   22 ----------------------
 1 file changed, 22 deletions(-)

Index: b/vl.c
===================================================================
--- a/vl.c
+++ 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)
 {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-14  9:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14  9:12 [Qemu-devel] [PATCH] cleanup qemu_find_bt_vlan Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).