From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfZRj-0004Xv-Si for qemu-devel@nongnu.org; Thu, 11 Feb 2010 08:51:08 -0500 Received: from [199.232.76.173] (port=57679 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfZRj-0004Xb-9F for qemu-devel@nongnu.org; Thu, 11 Feb 2010 08:51:07 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfZRh-0006ap-Or for qemu-devel@nongnu.org; Thu, 11 Feb 2010 08:51:06 -0500 Received: from mx20.gnu.org ([199.232.41.8]:46432) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NfZRf-0006X0-AU for qemu-devel@nongnu.org; Thu, 11 Feb 2010 08:51:05 -0500 Received: from oxygen.pond.sub.org ([213.239.205.148]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NfZR6-0005Vw-Fj for qemu-devel@nongnu.org; Thu, 11 Feb 2010 08:50:28 -0500 Received: from blackfin.pond.sub.org (pD951BCD9.dip.t-dialin.net [217.81.188.217]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 9B6AA276D6B for ; Thu, 11 Feb 2010 14:45:03 +0100 (CET) From: Markus Armbruster Date: Thu, 11 Feb 2010 14:44:57 +0100 Message-Id: <1265895902-15664-2-git-send-email-armbru@redhat.com> In-Reply-To: <1265895902-15664-1-git-send-email-armbru@redhat.com> References: <1265895902-15664-1-git-send-email-armbru@redhat.com> Subject: [Qemu-devel] [PATCH 1/6] net: Remove unused net_client_uninit() List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Mark McLoughlin Unused since commit 9ad4531e. Signed-off-by: Markus Armbruster --- net.c | 14 -------------- net.h | 1 - 2 files changed, 0 insertions(+), 15 deletions(-) diff --git a/net.c b/net.c index 8e951ca..f51d376 100644 --- a/net.c +++ b/net.c @@ -1128,20 +1128,6 @@ int net_client_init(Monitor *mon, QemuOpts *opts, int is_netdev) return -1; } -void net_client_uninit(NICInfo *nd) -{ - if (nd->vlan) { - nd->vlan->nb_guest_devs--; - } - nb_nics--; - - qemu_free(nd->model); - qemu_free(nd->name); - qemu_free(nd->devaddr); - - nd->used = 0; -} - static int net_host_check_device(const char *device) { int i; diff --git a/net.h b/net.h index 116bb80..ecbd812 100644 --- a/net.h +++ b/net.h @@ -163,7 +163,6 @@ extern const char *legacy_tftp_prefix; extern const char *legacy_bootp_filename; int net_client_init(Monitor *mon, QemuOpts *opts, int is_netdev); -void net_client_uninit(NICInfo *nd); int net_client_parse(QemuOptsList *opts_list, const char *str); int net_init_clients(void); void net_cleanup(void); -- 1.6.6