qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] cleanup qemu_find_bt_vlan


From: Jan Kiszka
Subject: [Qemu-devel] [PATCH] cleanup qemu_find_bt_vlan
Date: Tue, 14 Oct 2008 11:12:08 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666

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 <address@hidden>
---
 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)
 {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]