cleanup qemu_find_bt_vlan
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.
Signed-off-by Jan Kiszka <[email protected]>
--- vl.c | 22 ---------------------- 1 file changed, 22 deletions(-)
vl.c +0 -22
@@ -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) {