Patchwork [1/6] net: Remove unused net_client_uninit()

login
register
mail settings
Submitter Markus Armbruster
Date Feb. 11, 2010, 1:44 p.m.
Message ID <1265895902-15664-2-git-send-email-armbru@redhat.com>
Download mbox | patch
Permalink /patch/45129/
State New
Headers show

Comments

Markus Armbruster - Feb. 11, 2010, 1:44 p.m.
Unused since commit 9ad4531e.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
---
 net.c |   14 --------------
 net.h |    1 -
 2 files changed, 0 insertions(+), 15 deletions(-)
Anthony Liguori - Feb. 19, 2010, 8:55 p.m.
On 02/11/2010 07:44 AM, Markus Armbruster wrote:
> Unused since commit 9ad4531e.
>
> Signed-off-by: Markus Armbruster<armbru@redhat.com>
>    

Applied all.  Thanks.

Regards,

Anthony Liguori

> ---
>   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);
>
Anthony Liguori - Feb. 19, 2010, 8:55 p.m.
On 02/11/2010 07:44 AM, Markus Armbruster wrote:
> Unused since commit 9ad4531e.
>
> Signed-off-by: Markus Armbruster<armbru@redhat.com>
>    

Applied all.  Thanks.

Regards,

Anthony Liguori

> ---
>   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);
>

Patch

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);