diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-10-08 19:58:22 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-10-15 09:32:00 -0500 |
commit | dea7b3b95a0e6b88e0647e7afc8b6a7b5675fbb1 (patch) | |
tree | 2ffa08c039f06c700755f42740f84dd83e2b323d /net.c | |
parent | net: handle id= parameter for -net (diff) | |
download | qemu-kvm-dea7b3b95a0e6b88e0647e7afc8b6a7b5675fbb1.tar.gz qemu-kvm-dea7b3b95a0e6b88e0647e7afc8b6a7b5675fbb1.tar.bz2 qemu-kvm-dea7b3b95a0e6b88e0647e7afc8b6a7b5675fbb1.zip |
net: remove id field from NICInfo
Just use the name field instead since we now use the id paramater as
the name, if supplied. Only implication with this change is that if
id is not supplied, the value of the name paramater is used as an
id.
Patchworks-ID: 35512
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -2414,9 +2414,6 @@ static int net_init_nic(QemuOpts *opts, Monitor *mon, const char *name) if (name) { nd->name = qemu_strdup(name); } - if (qemu_opts_id(opts)) { - nd->id = qemu_strdup(qemu_opts_id(opts)); - } if (qemu_opt_get(opts, "model")) { nd->model = qemu_strdup(qemu_opt_get(opts, "model")); } @@ -3032,7 +3029,6 @@ void net_client_uninit(NICInfo *nd) qemu_free(nd->model); qemu_free(nd->name); qemu_free(nd->devaddr); - qemu_free(nd->id); nd->used = 0; } |