From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kpfwt-0003qE-NM for qemu-devel@nongnu.org; Tue, 14 Oct 2008 05:12:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kpfwr-0003oS-Pz for qemu-devel@nongnu.org; Tue, 14 Oct 2008 05:12:14 -0400 Received: from [199.232.76.173] (port=43190 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kpfwr-0003oH-CB for qemu-devel@nongnu.org; Tue, 14 Oct 2008 05:12:13 -0400 Received: from lizzard.sbs.de ([194.138.37.39]:19037) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kpfwq-0005Yv-16 for qemu-devel@nongnu.org; Tue, 14 Oct 2008 05:12:12 -0400 Received: from mail2.sbs.de (localhost [127.0.0.1]) by lizzard.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id m9E9C9Ut013519 for ; Tue, 14 Oct 2008 11:12:09 +0200 Received: from [139.25.109.167] (mchn012c.mchp.siemens.de [139.25.109.167] (may be forged)) by mail2.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id m9E9C9aO013972 for ; Tue, 14 Oct 2008 11:12:09 +0200 Message-ID: <48F46268.30501@siemens.com> Date: Tue, 14 Oct 2008 11:12:08 +0200 From: Jan Kiszka MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] cleanup qemu_find_bt_vlan Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 --- 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) {