From b391493bc6e756be30cc405f58b68b84876418a7 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Thu, 11 Feb 2010 14:44:57 +0100 Subject: [PATCH] net: Remove unused net_client_uninit() Unused since commit 9ad4531e. Signed-off-by: Markus Armbruster Signed-off-by: Anthony Liguori (cherry picked from commit 7f76abe1c9d880050ba31ff827b3ff5cbc8175a7) --- net.c | 14 -------------- net.h | 1 - 2 files changed, 15 deletions(-) diff --git a/net.c b/net.c index 8e951ca9da..f51d376130 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 4971fcbbb5..a9dc826706 100644 --- a/net.h +++ b/net.h @@ -160,7 +160,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); -- GitLab